avoid out-of-bounds read in GPU2D. fixes #763

This commit is contained in:
Arisotura 2020-09-18 00:29:08 +02:00
parent edf4c66724
commit a88df19708
1 changed files with 0 additions and 1 deletions

View File

@ -815,7 +815,6 @@ void GPU2D::DrawScanline(u32 line)
int i = 0; int i = 0;
for (; i < (stride & ~1); i+=2) for (; i < (stride & ~1); i+=2)
*(u64*)&dst[i] = *(u64*)&BGOBJLine[i]; *(u64*)&dst[i] = *(u64*)&BGOBJLine[i];
if (stride & 1) dst[i] = BGOBJLine[i];
} }
break; break;