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
7772 return 0;7772 return 0;
7773 }7773 }
7774 7774
7775 if (c->fc->nb_streams) {7775 if (c->avif_info) {
7776 av_log(c->fc, AV_LOG_INFO, "Duplicate iloc box found\n");7776 av_log(c->fc, AV_LOG_INFO, "Duplicate iloc box found\n");
7777 return 0;7777 return 0;
7778 }7778 }
7779 av_assert0(!c->fc->nb_streams);
7779 7780
7780 version = avio_r8(pb);7781 version = avio_r8(pb);
7781 avio_rb24(pb); // flags.7782 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