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

bluegr bluegr at gmail.com
Sun Jan 12 22:44:04 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:
2abbf8906b GLK: LEVEL9: Fixed out of bounds check in detectGames()


Commit: 2abbf8906beaaf5f6e4b131698236ffe7f3fc715
    https://github.com/scummvm/scummvm/commit/2abbf8906beaaf5f6e4b131698236ffe7f3fc715
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2020-01-13T00:43:50+02:00

Commit Message:
GLK: LEVEL9: Fixed out of bounds check in detectGames()

Changed paths:
    engines/glk/level9/detection.cpp


diff --git a/engines/glk/level9/detection.cpp b/engines/glk/level9/detection.cpp
index bd1ea06..adb416e 100644
--- a/engines/glk/level9/detection.cpp
+++ b/engines/glk/level9/detection.cpp
@@ -735,8 +735,8 @@ bool Level9MetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &
 			continue;
 
 		uint32 fileSize = gameFile.size();
-		if (fileSize > 0xffff) {
-			// Too big to possibly be a Level 9 game
+		if (fileSize == 0 || fileSize > 0xffff) {
+			// Too big or too small to possibly be a Level 9 game
 			gameFile.close();
 			continue;
 		}




More information about the Scummvm-git-logs mailing list