Commit f7cc5764 authored by Committed by Tom Finegan
Make obudec_read_leb128() stricter.
1. Only return 0 (success) with *value_length=0 if we reach EOF in the very first fread(). Also set *value to 0 in this case. This improves the code added in https://aomedia-review.googlesource.com/c/aom/+/52822 2. Pass the actual number of bytes in value_buffer (instead of OBU_MAX_LENGTH_FIELD_SIZE) to aom_uleb_decode(). In obudec_read_obu_header_and_size(), we should subtract leb128_length from buffer_capacity when calling obudec_read_obu_header(). Change-Id: Ie8e4afd6fbc5ed5b4a03de0a0face34970a59411
Showing with 11 additions and 9 deletions