diff options
author | Max Horn | 2004-08-16 22:24:24 +0000 |
---|---|---|
committer | Max Horn | 2004-08-16 22:24:24 +0000 |
commit | bf7eae79327a63342dbb50288526d807cf1056c3 (patch) | |
tree | 9a2ac56182826470178f594bdc9e76f31ddc0796 /scumm | |
parent | a4ac4379689b5246722502bad7ef6ad737be36d2 (diff) | |
download | scummvm-rg350-bf7eae79327a63342dbb50288526d807cf1056c3.tar.gz scummvm-rg350-bf7eae79327a63342dbb50288526d807cf1056c3.tar.bz2 scummvm-rg350-bf7eae79327a63342dbb50288526d807cf1056c3.zip |
Added another sanity assert (I got one crash in this sport while using a memory debugger -- likely a thread race condition
svn-id: r14635
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/imuse_digi/dimuse_bndmgr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scumm/imuse_digi/dimuse_bndmgr.cpp b/scumm/imuse_digi/dimuse_bndmgr.cpp index 0c0b1066d8..a0a58ef2d3 100644 --- a/scumm/imuse_digi/dimuse_bndmgr.cpp +++ b/scumm/imuse_digi/dimuse_bndmgr.cpp @@ -244,6 +244,7 @@ int32 BundleMgr::decompressSampleByIndex(int32 index, int32 offset, int32 size, output_size = size; assert(final_size + output_size <= blocks_final_size); + assert(skip + output_size <= (int)sizeof(_compOutput)); memcpy(*comp_final + final_size, _compOutput + skip, output_size); final_size += output_size; |