[Scummvm-git-logs] scummvm master -> 285bc1421e04a6ea476b2ce898513ddbb56dcc4c

sev- sev at scummvm.org
Sat Aug 1 19:02:57 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:
285bc1421e FULLPIPE: Fix buffer override


Commit: 285bc1421e04a6ea476b2ce898513ddbb56dcc4c
    https://github.com/scummvm/scummvm/commit/285bc1421e04a6ea476b2ce898513ddbb56dcc4c
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-08-01T21:02:41+02:00

Commit Message:
FULLPIPE: Fix buffer override

Changed paths:
    engines/fullpipe/gfx.cpp


diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index d06baaaa1c..6da876400b 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -867,8 +867,8 @@ bool Bitmap::putDibRB(byte *pixels, const Palette &palette) {
 					}
 				}
 
-				if (x > _width + 1) {
-					fillLen += _width - x + 1;
+				if (x > _width) {
+					fillLen += _width - x;
 					if (fillLen <= 0)
 						continue;
 				}




More information about the Scummvm-git-logs mailing list