[Scummvm-cvs-logs] SF.net SVN: scummvm:[55619] scummvm/trunk/engines/kyra/vqa.cpp
tdhs at users.sourceforge.net
tdhs at users.sourceforge.net
Sat Jan 29 19:20:38 CET 2011
Revision: 55619
http://scummvm.svn.sourceforge.net/scummvm/?rev=55619&view=rev
Author: tdhs
Date: 2011-01-29 18:20:38 +0000 (Sat, 29 Jan 2011)
Log Message:
-----------
KYRA: Fix Valgrind Uninitialized Memory Read at end of VQA Playback.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/vqa.cpp
Modified: scummvm/trunk/engines/kyra/vqa.cpp
===================================================================
--- scummvm/trunk/engines/kyra/vqa.cpp 2011-01-29 18:18:29 UTC (rev 55618)
+++ scummvm/trunk/engines/kyra/vqa.cpp 2011-01-29 18:20:38 UTC (rev 55619)
@@ -106,6 +106,9 @@
uint32 tag = _file->readUint32BE();
+ if (_file->eos())
+ return 0;
+
if (!(tag & 0xFF000000)) {
tag = (tag << 8) | _file->readByte();
}
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