diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2023-09-21 20:09:12 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-09-29 23:08:38 +0200 |
commit | 9a3bbf89bd9b32b9849d34920f7afcbd861d4e6b (patch) | |
tree | fd5cb0d5ecd1acc3aad92176fcc38f8b1d734138 /libavformat/mov.c | |
parent | f904e60c32a87f4124c3b94598a3b0141cd8b1b9 (diff) | |
download | ffmpeg-9a3bbf89bd9b32b9849d34920f7afcbd861d4e6b.tar.gz |
avformat/mov: Check avif_info
Fixes: leak
Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-6674082962997248
Fixes: 62164/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-6674082962997248
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 1996e0028c..294c864fbd 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -7772,10 +7772,11 @@ static int mov_read_iloc(MOVContext *c, AVIOContext *pb, MOVAtom atom) return 0; } - if (c->fc->nb_streams) { + if (c->avif_info) { av_log(c->fc, AV_LOG_INFO, "Duplicate iloc box found\n"); return 0; } + av_assert0(!c->fc->nb_streams); version = avio_r8(pb); avio_rb24(pb); // flags. |