diff options
author | Arisotura <thetotalworm@gmail.com> | 2020-09-18 00:29:08 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2020-09-18 00:29:08 +0200 |
commit | a88df197089842f008bdeb1d79dc3b1a16c28da9 (patch) | |
tree | 5be4085e33f57cb57bc058bc351349a0db68fbd5 /src | |
parent | edf4c66724b7371c3cafde68ea457b5aac372cb6 (diff) |
avoid out-of-bounds read in GPU2D. fixes #763
Diffstat (limited to 'src')
-rw-r--r-- | src/GPU2D.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/GPU2D.cpp b/src/GPU2D.cpp index 07790b7..7964aa4 100644 --- a/src/GPU2D.cpp +++ b/src/GPU2D.cpp @@ -815,7 +815,6 @@ void GPU2D::DrawScanline(u32 line) int i = 0; for (; i < (stride & ~1); i+=2) *(u64*)&dst[i] = *(u64*)&BGOBJLine[i]; - if (stride & 1) dst[i] = BGOBJLine[i]; } break; |