[Scummvm-cvs-logs] SF.net SVN: scummvm:[54787] scummvm/trunk/engines/hugo/file.cpp

tdhs at users.sourceforge.net tdhs at users.sourceforge.net
Sun Dec 5 22:52:43 CET 2010


Revision: 54787
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54787&view=rev
Author:   tdhs
Date:     2010-12-05 21:52:42 +0000 (Sun, 05 Dec 2010)

Log Message:
-----------
HUGO: Remove Invalid Memory Read in getSound() - Size not defined until after function returns.

Modified Paths:
--------------
    scummvm/trunk/engines/hugo/file.cpp

Modified: scummvm/trunk/engines/hugo/file.cpp
===================================================================
--- scummvm/trunk/engines/hugo/file.cpp	2010-12-05 21:04:46 UTC (rev 54786)
+++ scummvm/trunk/engines/hugo/file.cpp	2010-12-05 21:52:42 UTC (rev 54787)
@@ -250,7 +250,7 @@
 * any allocated memory.  Also returns size of data
 */
 sound_pt FileManager::getSound(int16 sound, uint16 *size) {
-	debugC(1, kDebugFile, "getSound(%d, %d)", sound, *size);
+	debugC(1, kDebugFile, "getSound(%d)", sound);
 
 	// No more to do if SILENCE (called for cleanup purposes)
 	if (sound == _vm->_soundSilence)


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