aboutsummaryrefslogtreecommitdiff
path: root/plugins/dfxvideo/soft.c
diff options
context:
space:
mode:
authornotaz2011-02-14 17:31:32 +0200
committernotaz2011-02-14 17:31:32 +0200
commitda1a56d5aadf1593c88fc69eda13ff8b90aa19e2 (patch)
treed45f98967cc4fe41d6543230736b7727b6d6a2fc /plugins/dfxvideo/soft.c
parenta916ad67762d10d8937e32e792be9143e589beb7 (diff)
downloadpcsx_rearmed-da1a56d5aadf1593c88fc69eda13ff8b90aa19e2.tar.gz
pcsx_rearmed-da1a56d5aadf1593c88fc69eda13ff8b90aa19e2.tar.bz2
pcsx_rearmed-da1a56d5aadf1593c88fc69eda13ff8b90aa19e2.zip
dfxvideo: fill sanity check to prevent crashes
Diffstat (limited to 'plugins/dfxvideo/soft.c')
-rw-r--r--plugins/dfxvideo/soft.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/dfxvideo/soft.c b/plugins/dfxvideo/soft.c
index 0f55236..d50b8e0 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;