History

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

Michael Niedermayer committed 3 years ago

Commit 9a3bbf81 parent f904e601 file · +2 −1Browse files

Unified · Split

libavformat/mov.c+2−1
@@ -7772,10 +7772,11 @@ static int mov_read_iloc(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 7771 unmodified lines
77727772 return 0;
77737773 }
77747774
7775− if (c->fc->nb_streams) {
7775+ if (c->avif_info) {
77767776 av_log(c->fc, AV_LOG_INFO, "Duplicate iloc box found\n");
77777777 return 0;
77787778 }
7779+ av_assert0(!c->fc->nb_streams);
77797780
77807781 version = avio_r8(pb);
77817782 avio_rb24(pb); // flags.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t