Fixes: multiple integer overflows
Fixes:
401016767/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-
6242067591790592
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit
9fc2702f6f502064d0d2d75c97ece33f4b56eb84)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
c->fc->nb_streams-1, i, e->time);
return AVERROR_INVALIDDATA;
}
+ if (e->duration < 0) {
+ av_log(c->fc, AV_LOG_ERROR, "Track %d, edit %d: Invalid edit list duration=%"PRId64"\n",
+ c->fc->nb_streams-1, i, e->duration);
+ return AVERROR_INVALIDDATA;
+ }
}
sc->elst_count = i;