mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-13 17:07:21 +00:00
avformat/iff: check av_get_packet() result in ANIM branch
Fixes: 494958338/clusterfuzz-testcase-minimized-ffmpeg_dem_IFF_fuzzer-6265824670449664
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 43f712d917)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -886,6 +886,8 @@ static int iff_read_packet(AVFormatContext *s,
|
||||
}
|
||||
}
|
||||
ret = av_get_packet(pb, pkt, data_size);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
pkt->pos = orig_pos;
|
||||
pkt->duration = get_anim_duration(pkt->data, pkt->size);
|
||||
if (pos == 12)
|
||||
|
||||
Reference in New Issue
Block a user