[Scummvm-cvs-logs] SF.net SVN: scummvm:[42784] scummvm/branches/branch-1-0-0/graphics/video/ coktelvideo/coktelvideo.cpp
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Sat Jul 25 20:44:57 CEST 2009
Revision: 42784
http://scummvm.svn.sourceforge.net/scummvm/?rev=42784&view=rev
Author: drmccoy
Date: 2009-07-25 18:44:57 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
Backport: Adding more sanity checks to Vmd::renderFrame()
Modified Paths:
--------------
scummvm/branches/branch-1-0-0/graphics/video/coktelvideo/coktelvideo.cpp
Modified: scummvm/branches/branch-1-0-0/graphics/video/coktelvideo/coktelvideo.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/graphics/video/coktelvideo/coktelvideo.cpp 2009-07-25 18:44:24 UTC (rev 42783)
+++ scummvm/branches/branch-1-0-0/graphics/video/coktelvideo/coktelvideo.cpp 2009-07-25 18:44:57 UTC (rev 42784)
@@ -1433,8 +1433,10 @@
byte *srcPtr;
uint8 type;
- if ((width < 0) || (height < 0))
+ if ((left < 0) || (top < 0) || (right < 0) || (bottom < 0))
return 1;
+ if ((width <= 0) || (height <= 0))
+ return 1;
byte *dest = imdVidMem;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list