aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authorDaniel Silsby2019-11-08 20:30:04 -0500
committerDaniel Silsby2019-11-08 20:30:04 -0500
commit7194a46a0eb7583f7af0b5807e6ffde006733111 (patch)
tree70dd67df94bcb59e76c5c54143c72e8e354d2d66 /libpcsxcore
parent3c8913013a3bb1908186342759f881baa16602b9 (diff)
downloadpcsx_rearmed-7194a46a0eb7583f7af0b5807e6ffde006733111.tar.gz
pcsx_rearmed-7194a46a0eb7583f7af0b5807e6ffde006733111.tar.bz2
pcsx_rearmed-7194a46a0eb7583f7af0b5807e6ffde006733111.zip
gpulib: fix out-of-bounds reads in do_cmd_buffer()
When gpu.cmd_buffer[] is filling up, and the last 1 or 2 words in it are the beginning of a new vram read/write cmd, do_cmd_buffer() would access out-of-bounds, reading garbage pos/size data. Fixes corrupted gfx in this PS1 .exe test utility: https://github.com/PeterLemon/PSX/tree/master/CPUTest/CPU/LOADSTORE/LW (This and all similar tests on Peter's site). Note that gfx access in this utility is done entirely through cmds given through GPUwriteData(), i.e. direct CPU->GP0 stores, not DMA.
Diffstat (limited to 'libpcsxcore')
0 files changed, 0 insertions, 0 deletions