Commit 00ed04d6 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/ifv: Check for EOF in read_index()

Fixes: Timeout
Fixes: 15567/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5758451487080448

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpegReviewed-by: 's avatarPeter Ross <pross@xvid.org>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 9869e217
......@@ -68,6 +68,8 @@ static int read_index(AVFormatContext *s,
}
for (i = start_index; i < end_index; i++) {
if (avio_feof(s->pb))
return AVERROR_EOF;
pos = avio_rl32(s->pb);
size = avio_rl32(s->pb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment