[Scummvm-git-logs] scummvm master -> 44a19cc57024a2e9e0cd711919d824508d4dc943

dreammaster paulfgilbert at gmail.com
Thu Sep 10 02:04:41 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:
44a19cc570 GLK: LEVEL9: Fix array overrun


Commit: 44a19cc57024a2e9e0cd711919d824508d4dc943
    https://github.com/scummvm/scummvm/commit/44a19cc57024a2e9e0cd711919d824508d4dc943
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2020-09-09T19:04:30-07:00

Commit Message:
GLK: LEVEL9: Fix array overrun

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


diff --git a/engines/glk/level9/level9_main.cpp b/engines/glk/level9/level9_main.cpp
index 3cc027e2ea..49f3fb6c9e 100644
--- a/engines/glk/level9/level9_main.cpp
+++ b/engines/glk/level9/level9_main.cpp
@@ -795,7 +795,7 @@ L9BOOL intinitialise(const char *filename, char *picname) {
 			error("\rWhat appears to be V1 game data was found, but the game was not recognised.\rEither this is an unknown V1 game file or, more likely, it is corrupted.\r");
 			return FALSE;
 		}
-		for (i = 0; i < 6; i++) {
+		for (i = 0; i < 5; i++) {
 			int off = g_vm->_detection.v1Game().L9Ptrs[i];
 			if (off < 0)
 				L9Pointers[i + 2] = acodeptr + off;




More information about the Scummvm-git-logs mailing list