[Scummvm-git-logs] scummvm master -> 5491b6e2d04dd8bada4a04f5c55ae51aea65ff1f
criezy
noreply at scummvm.org
Wed Jun 11 23:26:55 UTC 2025
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:
5491b6e2d0 WAGE: Fix out of bound memory access in Design::isInBounds
Commit: 5491b6e2d04dd8bada4a04f5c55ae51aea65ff1f
https://github.com/scummvm/scummvm/commit/5491b6e2d04dd8bada4a04f5c55ae51aea65ff1f
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2025-06-12T00:26:18+01:00
Commit Message:
WAGE: Fix out of bound memory access in Design::isInBounds
Changed paths:
engines/wage/design.cpp
diff --git a/engines/wage/design.cpp b/engines/wage/design.cpp
index b29539b4cc9..b04f591b05f 100644
--- a/engines/wage/design.cpp
+++ b/engines/wage/design.cpp
@@ -192,7 +192,7 @@ bool Design::isInBounds(int x, int y) {
error("Design::isInBounds(): Surface is null");
if (_maskImage == nullptr)
return false;
- if (x > _maskImage->w || y > _maskImage->h)
+ if (x >= _maskImage->w || y >= _maskImage->h)
return false;
byte pixel = ((byte *)_maskImage->getBasePtr(x, y))[0];
More information about the Scummvm-git-logs
mailing list