[Scummvm-git-logs] scummvm master -> 409280f6e0fd08f68a0c7fc6d163540a51aa4517
sev-
sev at scummvm.org
Sat Aug 1 23:22: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:
409280f6e0 FULLPIPE: Avoid memory override
Commit: 409280f6e0fd08f68a0c7fc6d163540a51aa4517
https://github.com/scummvm/scummvm/commit/409280f6e0fd08f68a0c7fc6d163540a51aa4517
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-08-02T01:22:22+02:00
Commit Message:
FULLPIPE: Avoid memory override
Changed paths:
engines/fullpipe/gfx.cpp
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index 93524b3a5c..51ce848bf5 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -849,6 +849,7 @@ bool Bitmap::putDibRB(byte *pixels, const Palette &palette) {
if (y <= endy) {
int bgcolor = palette.pal[(pixel >> 8) & 0xff];
curDestPtr = (uint32 *)_surface->getBasePtr(start1, y);
+ fillLen = MIN(_width - start1, fillLen);
colorFill(curDestPtr, fillLen, bgcolor);
}
}
@@ -875,6 +876,7 @@ bool Bitmap::putDibRB(byte *pixels, const Palette &palette) {
if (y <= endy) {
curDestPtr = (uint32 *)_surface->getBasePtr(start1, y);
+ fillLen = MIN(_width - start1, fillLen);
paletteFill(curDestPtr, (byte *)srcPtr2, fillLen, palette);
}
}
More information about the Scummvm-git-logs
mailing list