From da1a56d5aadf1593c88fc69eda13ff8b90aa19e2 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 14 Feb 2011 17:31:32 +0200 Subject: [PATCH] dfxvideo: fill sanity check to prevent crashes --- plugins/dfxvideo/soft.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.5