mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Add another assert to decode_chunk_rle_with_size
This commit is contained in:
committed by
Ted John
parent
edb4a4a822
commit
ef09dcd64a
@@ -395,6 +395,7 @@ static size_t decode_chunk_rle_with_size(const uint8* src_buffer, uint8* dst_buf
|
||||
if (rleCodeByte & 128) {
|
||||
i++;
|
||||
count = 257 - rleCodeByte;
|
||||
assert(dst + count <= dst_buffer + dstSize);
|
||||
memset(dst, src_buffer[i], count);
|
||||
dst = (uint8*)((uintptr_t)dst + count);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user