aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2020-09-18 00:29:08 +0200
committerArisotura <thetotalworm@gmail.com>2020-09-18 00:29:08 +0200
commita88df197089842f008bdeb1d79dc3b1a16c28da9 (patch)
tree5be4085e33f57cb57bc058bc351349a0db68fbd5 /src
parentedf4c66724b7371c3cafde68ea457b5aac372cb6 (diff)
avoid out-of-bounds read in GPU2D. fixes #763
Diffstat (limited to 'src')
-rw-r--r--src/GPU2D.cpp1
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;