[Scummvm-git-logs] scummvm master -> 5afec16c3b60161ea87575eccb1c912f55673c3c

bgK bastien.bouclet at gmail.com
Fri Jun 5 18:11:51 UTC 2020


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:
5afec16c3b SCI: Fix stack use after scope in detection code


Commit: 5afec16c3b60161ea87575eccb1c912f55673c3c
    https://github.com/scummvm/scummvm/commit/5afec16c3b60161ea87575eccb1c912f55673c3c
Author: Bastien Bouclet (bastien.bouclet at gmail.com)
Date: 2020-06-05T20:11:26+02:00

Commit Message:
SCI: Fix stack use after scope in detection code

Changed paths:
    engines/sci/resource.cpp


diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp
index 7c4cc18fc1..0881521f39 100644
--- a/engines/sci/resource.cpp
+++ b/engines/sci/resource.cpp
@@ -742,7 +742,7 @@ int ResourceManager::addAppropriateSourcesForDetection(const Common::FSList &fsl
 			map = addExternalMap(file);
 
 		if (filename.contains("resmap.0")) {
-			const char *dot = strrchr(file->getName().c_str(), '.');
+			const char *dot = strrchr(filename.c_str(), '.');
 			uint number = atoi(dot + 1);
 
 			// We need to store each of these maps for use later on




More information about the Scummvm-git-logs mailing list