mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-02-04 01:37:50 +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
50922e3dbd
commit
4c4da0e39a
@ -318,6 +318,9 @@ AAC_DECODER_ERROR CBlock_ReadSectionData(HANDLE_FDK_BITSTREAM bs,
|
||||
}
|
||||
|
||||
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