[Scummvm-git-logs] scummvm master -> 7169eccbf62e1c488450253070bfca41005f861a

lephilousophe noreply at scummvm.org
Sun Mar 22 18:51:05 UTC 2026


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

Summary:
7169eccbf6 TESTBED: Fix out of bounds read


Commit: 7169eccbf62e1c488450253070bfca41005f861a
    https://github.com/scummvm/scummvm/commit/7169eccbf62e1c488450253070bfca41005f861a
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2026-03-22T19:50:30+01:00

Commit Message:
TESTBED: Fix out of bounds read

Test pattern is loaded and a portion of it is scaled. Use the proper
dimensions to avoid an out of bound read.

Fix #16376.

Changed paths:
    engines/testbed/tinygl.cpp


diff --git a/engines/testbed/tinygl.cpp b/engines/testbed/tinygl.cpp
index 4b824e6e0db..b269d4c1cae 100644
--- a/engines/testbed/tinygl.cpp
+++ b/engines/testbed/tinygl.cpp
@@ -283,7 +283,7 @@ TestExitStatus TinyGLTests::runTexEnvTest(
 			testImage.pitch,
 			converted.pitch,
 			testImage.w, testImage.h,
-			converted.w, converted.h,
+			subRect.width(), subRect.height(),
 			converted.format);
 	}
 	Graphics::ManagedSurface readBack(testImage.w, testImage.h, testImage.format);




More information about the Scummvm-git-logs mailing list