mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
add an extra assert to check memory bounds
-> will remove a static-analysis warning about unused value. addresses issue #138 Change-Id: I8ba4bf71a41e32759da41907aab73108dd230bc4
This commit is contained in:
parent
8189feda50
commit
cd22f655e8
@ -494,6 +494,7 @@ static int AllocateMemory(VP8Decoder* const dec) {
|
||||
// alpha plane
|
||||
dec->alpha_plane_ = alpha_size ? (uint8_t*)mem : NULL;
|
||||
mem += alpha_size;
|
||||
assert(mem <= (uint8_t*)dec->mem_ + dec->mem_size_);
|
||||
|
||||
// note: left-info is initialized once for all.
|
||||
memset(dec->mb_info_ - 1, 0, mb_info_size);
|
||||
|
Loading…
Reference in New Issue
Block a user