[Scummvm-git-logs] scummvm master -> b4c7cbb9d171fd9a714039eb63339c2266a53c2b

AReim1982 noreply at scummvm.org
Wed Oct 21 13:14:52 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:
b4c7cbb9d1 WII: Avoid out-of-bounds reads when converting cursors


Commit: b4c7cbb9d171fd9a714039eb63339c2266a53c2b
    https://github.com/scummvm/scummvm/commit/b4c7cbb9d171fd9a714039eb63339c2266a53c2b
Author: Alexander Reim (alexander at areim.de)
Date: 2026-10-21T15:14:43+02:00

Commit Message:
WII: Avoid out-of-bounds reads when converting cursors

Use the original cursor dimensions instead of the padded GX texture dimensions as the crossBlit copy size. This prevents reading beyond the source buffer and fixes cursor distortion and artifacts.

Changed paths:
    backends/platform/wii/osystem_gfx.cpp


diff --git a/backends/platform/wii/osystem_gfx.cpp b/backends/platform/wii/osystem_gfx.cpp
index e654d467ac1..837c6c25729 100644
--- a/backends/platform/wii/osystem_gfx.cpp
+++ b/backends/platform/wii/osystem_gfx.cpp
@@ -722,7 +722,7 @@ void OSystem_Wii::setMouseCursor(const void *buf, uint w, uint h, int hotspotX,
 		if (!Graphics::crossBlit(tmp, (const byte *)buf,
 									tw * _pfRGB3444.bytesPerPixel,
 									w * _pfCursor.bytesPerPixel,
-									tw, th, _pfRGB3444, _pfCursor)) {
+									w, h, _pfRGB3444, _pfCursor)) {
 			printf("crossBlit failed (cursor)\n");
 			::abort();
 		}




More information about the Scummvm-git-logs mailing list