[Scummvm-cvs-logs] SF.net SVN: scummvm:[38447] scummvm/trunk/graphics/VectorRendererSpec.cpp
tanoku at users.sourceforge.net
tanoku at users.sourceforge.net
Tue Feb 17 21:50:30 CET 2009
Revision: 38447
http://scummvm.svn.sourceforge.net/scummvm/?rev=38447&view=rev
Author: tanoku
Date: 2009-02-17 20:50:30 +0000 (Tue, 17 Feb 2009)
Log Message:
-----------
Fixed bug #2609755 (GUI memory corruption).
Modified Paths:
--------------
scummvm/trunk/graphics/VectorRendererSpec.cpp
Modified: scummvm/trunk/graphics/VectorRendererSpec.cpp
===================================================================
--- scummvm/trunk/graphics/VectorRendererSpec.cpp 2009-02-17 20:43:37 UTC (rev 38446)
+++ scummvm/trunk/graphics/VectorRendererSpec.cpp 2009-02-17 20:50:30 UTC (rev 38447)
@@ -1096,6 +1096,10 @@
PixelType *ptr_right = 0, *ptr_left = 0;
+ if (x1 + size > Base::_activeSurface->w || x1 < 0 ||
+ y1 + size > Base::_activeSurface->h || y1 < 0)
+ return;
+
if (inverted) {
ptr_left = (PixelType *)_activeSurface->getBasePtr(x1, y1);
ptr_right = (PixelType *)_activeSurface->getBasePtr(x1 + size, y1);
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