You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add bound check before accessing flags array of InterpreterEmulator
`InterpreterEmulator::findNextByteCodeToVisit()` accesses `_InterpreterEmulatorFlags`
twice. Before the second one, `_bcIndex` can be modified with the value returned
by `findNextByteCodeToGen()`. The value can be larger than `_maxByteCodeIndex`,
which causes an out of bounds access.
This commit adds a bound check before the second access to `_InterpreterEmulatorFlags`.
Signed-off-by: Akira Saitoh <saiaki@jp.ibm.com>
0 commit comments