[Scummvm-cvs-logs] SF.net SVN: scummvm:[41798] scummvm/trunk/engines/gob/script.cpp
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Tue Jun 23 03:23:31 CEST 2009
Revision: 41798
http://scummvm.svn.sourceforge.net/scummvm/?rev=41798&view=rev
Author: drmccoy
Date: 2009-06-23 01:23:31 +0000 (Tue, 23 Jun 2009)
Log Message:
-----------
Stopping the seek() going into the header
Modified Paths:
--------------
scummvm/trunk/engines/gob/script.cpp
Modified: scummvm/trunk/engines/gob/script.cpp
===================================================================
--- scummvm/trunk/engines/gob/script.cpp 2009-06-23 01:23:14 UTC (rev 41797)
+++ scummvm/trunk/engines/gob/script.cpp 2009-06-23 01:23:31 UTC (rev 41798)
@@ -107,6 +107,12 @@
if ((offset < 0) || (((uint32) offset) >= _totSize))
return false;
+ // Cannot seek into the header
+ if (offset < 128) {
+ _finished = true;
+ return false;
+ }
+
// A successful seek means the script file continues to be executed
_finished = false;
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