[Scummvm-cvs-logs] SF.net SVN: scummvm:[38477] scummvm/branches/branch-0-13-0/graphics/ VectorRendererSpec.cpp
tanoku at users.sourceforge.net
tanoku at users.sourceforge.net
Wed Feb 18 14:39:54 CET 2009
Revision: 38477
http://scummvm.svn.sourceforge.net/scummvm/?rev=38477&view=rev
Author: tanoku
Date: 2009-02-18 13:39:53 +0000 (Wed, 18 Feb 2009)
Log Message:
-----------
Backport for bugfix of #2609755 (GUI memory corruption).
Modified Paths:
--------------
scummvm/branches/branch-0-13-0/graphics/VectorRendererSpec.cpp
Modified: scummvm/branches/branch-0-13-0/graphics/VectorRendererSpec.cpp
===================================================================
--- scummvm/branches/branch-0-13-0/graphics/VectorRendererSpec.cpp 2009-02-18 13:30:35 UTC (rev 38476)
+++ scummvm/branches/branch-0-13-0/graphics/VectorRendererSpec.cpp 2009-02-18 13:39:53 UTC (rev 38477)
@@ -1114,6 +1114,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