diff options
author | Max Horn | 2003-04-01 15:32:17 +0000 |
---|---|---|
committer | Max Horn | 2003-04-01 15:32:17 +0000 |
commit | 68e7ce814311cdb17eb541c7b3d161e26f08d0d6 (patch) | |
tree | cfe788d314df951ca477f6db93bb139ff91b0489 /scumm | |
parent | 0c0ee744491a30f8b94d93a934b583d6fb3d6f1d (diff) | |
download | scummvm-rg350-68e7ce814311cdb17eb541c7b3d161e26f08d0d6.tar.gz scummvm-rg350-68e7ce814311cdb17eb541c7b3d161e26f08d0d6.tar.bz2 scummvm-rg350-68e7ce814311cdb17eb541c7b3d161e26f08d0d6.zip |
Patch 713149: Fix OOB access
svn-id: r6893
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/nut_renderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/nut_renderer.cpp b/scumm/nut_renderer.cpp index 1aa47d447f..f994511c29 100644 --- a/scumm/nut_renderer.cpp +++ b/scumm/nut_renderer.cpp @@ -209,7 +209,7 @@ void NutRenderer::drawChar(byte c, int32 x, int32 y, byte color, bool useMask) { maskpos = 0; for (int32 tx = 0; tx < width; tx++) { byte pixel = *src++; - if (x + tx >= 640 || y + ty >= 480) + if (x + tx < 0 || x + tx >= _vm->_realWidth || y + ty < 0 || y + ty >= _vm->_realHeight) continue; #if 1 if (pixel != 0) { |