mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 08:12:44 +00:00
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/ffmpeg Reviewed-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
9869e21776
commit
00ed04d614
@ -68,6 +68,8 @@ static int read_index(AVFormatContext *s,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = start_index; i < end_index; i++) {
|
for (i = start_index; i < end_index; i++) {
|
||||||
|
if (avio_feof(s->pb))
|
||||||
|
return AVERROR_EOF;
|
||||||
pos = avio_rl32(s->pb);
|
pos = avio_rl32(s->pb);
|
||||||
size = avio_rl32(s->pb);
|
size = avio_rl32(s->pb);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user