Skip to content

Commit

Permalink
SHERLOCK: Zero-out trailing bytes after decompressed bytes
Browse files Browse the repository at this point in the history
Fixes Russian version of Rose Tatoo
  • Loading branch information
phcoder committed Sep 15, 2024
1 parent 6eecc16 commit 0966d30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engines/sherlock/resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ void Resources::decompressLZ(Common::SeekableReadStream &source, byte *outBuffer
if (inSize != -1 && source.pos() < endPos) {
source.skip(endPos - source.pos());
}
if (outSize != -1 && outBuffer < outBufferEnd) {
memset(outBuffer, 0, outBufferEnd - outBuffer);
}
}

} // End of namespace Sherlock

0 comments on commit 0966d30

Please sign in to comment.