diff options
author | Daniel Silsby | 2019-11-08 20:30:04 -0500 |
---|---|---|
committer | twinaphex | 2020-02-08 15:50:06 +0100 |
commit | 79573c20e473b4f8490a50b772a1636a50c1b594 (patch) | |
tree | 69d87122cf6af8870bfde511328052111c0e716a /deps/zlib/deflate.h | |
parent | ea884d3029c673e06a4084156ceb662598d8945a (diff) | |
download | pcsx_rearmed-79573c20e473b4f8490a50b772a1636a50c1b594.tar.gz pcsx_rearmed-79573c20e473b4f8490a50b772a1636a50c1b594.tar.bz2 pcsx_rearmed-79573c20e473b4f8490a50b772a1636a50c1b594.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 'deps/zlib/deflate.h')
0 files changed, 0 insertions, 0 deletions