History

avformat/mov: reject negative ELST durations

Fixes: multiple integer overflows Fixes: 401016767/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-6242067591790592

Michael Niedermayer committed 1 year ago

Commit 9fc27021 parent 76e29bb1 file · +5 −0Browse files

Unified · Split

libavformat/mov.c+5−0
@@ -6295,6 +6295,11 @@ static int mov_read_elst(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 6294 unmodified lines
62956295 c->fc->nb_streams-1, i, e->time);
62966296 return AVERROR_INVALIDDATA;
62976297 }
6298+ if (e->duration < 0) {
6299+ av_log(c->fc, AV_LOG_ERROR, "Track %d, edit %d: Invalid edit list duration=%"PRId64"\n",
6300+ c->fc->nb_streams-1, i, e->duration);
6301+ return AVERROR_INVALIDDATA;
6302+ }
62986303 }
62996304 sc->elst_count = i;
63006305

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