mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-15 01:08:30 +00:00
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>
This commit is contained in:
parent
78b95530f0
commit
db31b3ea86
1 changed files with 2 additions and 0 deletions
|
@ -250,6 +250,8 @@ static int aax_read_header(AVFormatContext *s)
|
||||||
|
|
||||||
start = avio_rb32(pb);
|
start = avio_rb32(pb);
|
||||||
size = avio_rb32(pb);
|
size = avio_rb32(pb);
|
||||||
|
if (!size)
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
a->segments[r].start = start + a->data_offset;
|
a->segments[r].start = start + a->data_offset;
|
||||||
a->segments[r].end = a->segments[r].start + size;
|
a->segments[r].end = a->segments[r].start + size;
|
||||||
if (r &&
|
if (r &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue