mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 10:17:22 +00:00
CRUISE: Fix Possible Invalid Thumbnail Pointer Access.
This commit is contained in:
parent
388f16d3bc
commit
2a4fa26d52
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user