From: notaz Date: Mon, 14 Feb 2011 15:31:32 +0000 (+0200) Subject: dfxvideo: fill sanity check to prevent crashes X-Git-Tag: r7~32 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=commitdiff_plain;h=da1a56d5aadf1593c88fc69eda13ff8b90aa19e2 dfxvideo: fill sanity check to prevent crashes --- diff --git a/plugins/dfxvideo/soft.c b/plugins/dfxvideo/soft.c index 0f55236e..d50b8e03 100644 --- a/plugins/dfxvideo/soft.c +++ b/plugins/dfxvideo/soft.c @@ -1003,6 +1003,10 @@ static void FillSoftwareArea(short x0,short y0,short x1, // FILL AREA (BLK { short j,i,dx,dy; + // ?? ff9 pal hooligan crack sets nonsense x0 + if(x0<0) x0=0; + if(y0<0) y0=0; + if(y0>y1) return; if(x0>x1) return;