[Scummvm-git-logs] scummvm master -> 2a4fa26d5241f7febbb47e4419e6ca1c3f6925d9

digitall dgturner at iee.org
Tue Jul 31 10:14:20 CEST 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
2a4fa26d52 CRUISE: Fix Possible Invalid Thumbnail Pointer Access.


Commit: 2a4fa26d5241f7febbb47e4419e6ca1c3f6925d9
    https://github.com/scummvm/scummvm/commit/2a4fa26d5241f7febbb47e4419e6ca1c3f6925d9
Author: D G Turner (digitall at scummvm.org)
Date: 2018-07-31T09:22:26+01:00

Commit Message:
CRUISE: Fix Possible Invalid Thumbnail Pointer Access.

Changed paths:
    engines/cruise/saveload.cpp


diff --git a/engines/cruise/saveload.cpp b/engines/cruise/saveload.cpp
index 7aaeb06..499f2a7 100644
--- a/engines/cruise/saveload.cpp
+++ b/engines/cruise/saveload.cpp
@@ -61,6 +61,7 @@ WARN_UNUSED_RESULT bool readSavegameHeader(Common::InSaveFile *in, CruiseSavegam
 	while ((ch = (char)in->readByte()) != '\0') header.saveName += ch;
 
 	// Get the thumbnail
+	header.thumbnail = nullptr;
 	if (!Graphics::loadThumbnail(*in, header.thumbnail, skipThumbnail)) {
 		return false;
 	}





More information about the Scummvm-git-logs mailing list