Various blitter fixes, should fix 8088MPH Kefrens segmentation fault.

This commit is contained in:
OBattler
2021-09-27 04:32:08 +02:00
parent fe48e3b36d
commit 03ed12a966
4 changed files with 5 additions and 7 deletions

View File

@@ -172,7 +172,7 @@ vnc_blit(int x, int y, int w, int h)
uint32_t *p;
int yy;
if (h <= 0)
if ((x < 0) || (y < 0) || (w <= 0) || (h <= 0) || (w > 2048) || (h > 2048) || (buffer32 == NULL))
return;
for (yy=0; yy<h; yy++) {