Avoid infinite loops in block decoding

Fixes: 1921/clusterfuzz-testcase-minimized-5480510065213440

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
This commit is contained in:
Martin Storsjo 2017-06-07 15:54:02 +03:00
parent fdc8fe94a6
commit 40e15b58d0
1 changed files with 3 additions and 0 deletions

View File

@ -372,6 +372,9 @@ AAC_DECODER_ERROR CBlock_ReadSectionData(
}
sect_len += sect_len_incr;
if (sect_len <= 0) {
return AAC_DEC_PARSE_ERROR;
}
top = band + sect_len;