summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/DInput/DInput.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-06-13 18:34:17 -0700
committerPokechu22 <Pokechu022@gmail.com>2022-06-14 12:22:06 -0700
commitcad9801ded56ecee0922ebb8d304cacb6c69541d (patch)
treee59a712d79b8f3130d79455c41dd1d0ec148e97f /Source/Core/InputCommon/ControllerInterface/DInput/DInput.cpp
parentdc353ed84d780c0a7bd2c6d98e893a6db304933e (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/DInput/DInput.cpp')
0 files changed, 0 insertions, 0 deletions