diff options
author | Eugene Sandulenko | 2016-05-31 13:25:19 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-31 17:12:18 +0200 |
commit | 1a084f1541b0c733a1a36d8a77772abaec4f3d40 (patch) | |
tree | a8d04fd3a83bec7f2dc33bb6ed14565e0b5b9565 | |
parent | 459be5e7b248d7cd9f70ffb814d63238c3318796 (diff) | |
download | scummvm-rg350-1a084f1541b0c733a1a36d8a77772abaec4f3d40.tar.gz scummvm-rg350-1a084f1541b0c733a1a36d8a77772abaec4f3d40.tar.bz2 scummvm-rg350-1a084f1541b0c733a1a36d8a77772abaec4f3d40.zip |
SCUMM HE: Initialize memory before usage
-rw-r--r-- | engines/scumm/he/cup_player_he.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/scumm/he/cup_player_he.cpp b/engines/scumm/he/cup_player_he.cpp index c409863804..3a7ad49c2f 100644 --- a/engines/scumm/he/cup_player_he.cpp +++ b/engines/scumm/he/cup_player_he.cpp @@ -408,6 +408,9 @@ void CUP_Player::handleSRLE(Common::SeekableReadStream &dataStream, uint32 dataS static void decodeLZSS(uint8 *dst, const uint8 *src1, const uint8 *src2, const uint8 *src3) { uint8 wnd[4096]; int index = 1; + + memset(wnd, 0, sizeof(wnd)); + while (1) { int code = *src1++; for (int b = 0; b < 8; ++b) { |