avoid out-of-bounds read in GPU2D. fixes #763
This commit is contained in:
parent
edf4c66724
commit
a88df19708
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue