Commit 0a79a1b1 authored by Yaowu Xu's avatar Yaowu Xu
Browse files

Change to use correct size

Replace obselete size "4" with correct one "tile_size_bytes". This
fixes a decoder crash.


Change-Id: I5b1c606a4d5be946acc68b3cfe0d0603a5591c44
parent 4be12628
......@@ -3280,7 +3280,7 @@ static void get_tile_buffer(const uint8_t *const data_end,
size_t size;
if (!is_last) {
if (!read_is_valid(*data, 4, data_end))
if (!read_is_valid(*data, tile_size_bytes, data_end))
aom_internal_error(error_info, AOM_CODEC_CORRUPT_FRAME,
"Truncated packet or corrupt tile length");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment