[Scummvm-cvs-logs] SF.net SVN: scummvm:[46784] scummvm/trunk/engines/gob/goblin_v1.cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Thu Dec 31 00:21:33 CET 2009


Revision: 46784
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46784&view=rev
Author:   drmccoy
Date:     2009-12-30 23:21:33 +0000 (Wed, 30 Dec 2009)

Log Message:
-----------
Fixing an out of array bounds read

Modified Paths:
--------------
    scummvm/trunk/engines/gob/goblin_v1.cpp

Modified: scummvm/trunk/engines/gob/goblin_v1.cpp
===================================================================
--- scummvm/trunk/engines/gob/goblin_v1.cpp	2009-12-30 23:13:49 UTC (rev 46783)
+++ scummvm/trunk/engines/gob/goblin_v1.cpp	2009-12-30 23:21:33 UTC (rev 46784)
@@ -618,7 +618,7 @@
 
 		if (_forceNextState[0] != -1) {
 			gobDesc->nextState = _forceNextState[0];
-			for (i = 0; i < 10; i++)
+			for (i = 0; i < 9; i++)
 				_forceNextState[i] = _forceNextState[i + 1];
 		}
 


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