mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
muxread: fix 0 offset of NULL pointer
BUG=chromium:1028620,chromium:1027409 Change-Id: I2b5527a223a03161afbf39c297c4646954a91fbc
This commit is contained in:
parent
0df474ac9e
commit
290dd0b426
@ -100,7 +100,7 @@ static int MuxImageParse(const WebPChunk* const chunk, int copy_data,
|
|||||||
WebPMuxImage* const wpi) {
|
WebPMuxImage* const wpi) {
|
||||||
const uint8_t* bytes = chunk->data_.bytes;
|
const uint8_t* bytes = chunk->data_.bytes;
|
||||||
size_t size = chunk->data_.size;
|
size_t size = chunk->data_.size;
|
||||||
const uint8_t* const last = bytes + size;
|
const uint8_t* const last = (bytes == NULL) ? NULL : bytes + size;
|
||||||
WebPChunk subchunk;
|
WebPChunk subchunk;
|
||||||
size_t subchunk_size;
|
size_t subchunk_size;
|
||||||
WebPChunk** unknown_chunk_list = &wpi->unknown_;
|
WebPChunk** unknown_chunk_list = &wpi->unknown_;
|
||||||
|
Loading…
Reference in New Issue
Block a user