aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2023-09-21 20:09:12 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2023-09-29 23:08:38 +0200
commit9a3bbf89bd9b32b9849d34920f7afcbd861d4e6b (patch)
treefd5cb0d5ecd1acc3aad92176fcc38f8b1d734138 /libavformat/mov.c
parentf904e60c32a87f4124c3b94598a3b0141cd8b1b9 (diff)
downloadffmpeg-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.c3
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.