notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a916ad6
)
dfxvideo: fill sanity check to prevent crashes
author
notaz
<notasas@gmail.com>
Mon, 14 Feb 2011 15:31:32 +0000
(17:31 +0200)
committer
notaz
<notasas@gmail.com>
Mon, 14 Feb 2011 15:31:32 +0000
(17:31 +0200)
plugins/dfxvideo/soft.c
patch
|
blob
|
blame
|
history
diff --git
a/plugins/dfxvideo/soft.c
b/plugins/dfxvideo/soft.c
index
0f55236
..
d50b8e0
100644
(file)
--- 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;