Skip to content

Commit c16a0ed

Browse files
committed
avformat/aaxdec: Check for overlaping segments
Fixes: Timeout Fixes: 45875/clusterfuzz-testcase-minimized-ffmpeg_dem_AAX_fuzzer-6121689903136768 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <[email protected]>
1 parent b0cac70 commit c16a0ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libavformat/aaxdec.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ static int aax_read_header(AVFormatContext *s)
252252
size = avio_rb32(pb);
253253
a->segments[r].start = start + a->data_offset;
254254
a->segments[r].end = a->segments[r].start + size;
255+
if (r &&
256+
a->segments[r].start < a->segments[r-1].end &&
257+
a->segments[r].end > a->segments[r-1].start)
258+
return AVERROR_INVALIDDATA;
255259
} else
256260
return AVERROR_INVALIDDATA;
257261
}

0 commit comments

Comments
 (0)