mirror of https://git.videolan.org/git/ffmpeg.git
avformat/aaxdec: Check for empty segments
Fixes: Timeout
Fixes: 48154/clusterfuzz-testcase-minimized-ffmpeg_dem_AAX_fuzzer-5149094353436672
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit db31b3ea86
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
89685f280a
commit
024b94bab3
|
@ -249,6 +249,8 @@ static int aax_read_header(AVFormatContext *s)
|
|||
|
||||
start = avio_rb32(pb);
|
||||
size = avio_rb32(pb);
|
||||
if (!size)
|
||||
return AVERROR_INVALIDDATA;
|
||||
a->segments[r].start = start + a->data_offset;
|
||||
a->segments[r].end = a->segments[r].start + size;
|
||||
if (r &&
|
||||
|
|
Loading…
Reference in New Issue