diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2022-06-13 18:34:17 -0700 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2022-06-14 12:22:06 -0700 |
| commit | cad9801ded56ecee0922ebb8d304cacb6c69541d (patch) | |
| tree | e59a712d79b8f3130d79455c41dd1d0ec148e97f /Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | |
| parent | dc353ed84d780c0a7bd2c6d98e893a6db304933e (diff) | |
DSPDisassembler: Fix out-of-bounds read when the last word is an instruction with a large immediate
For instance, ending with 0x009e (which you can do with CW 0x009e) indicates a LRI $ac0.m instruction, but there is no immediate value to load, so before whatever garbage in memory existed after the end of the file was used.
The bounds-checking also previously assumed that IRAM or IROM was being used, both of which were exactly 0x1000 long.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp')
0 files changed, 0 insertions, 0 deletions
