mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-02-17 19:50:35 +01:00
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:
parent
fdc8fe94a6
commit
40e15b58d0
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user