From a88df197089842f008bdeb1d79dc3b1a16c28da9 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Fri, 18 Sep 2020 00:29:08 +0200 Subject: avoid out-of-bounds read in GPU2D. fixes #763 --- src/GPU2D.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3