mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-30 03:13:18 +00:00
avformat/mov: Fix integer overflow in FFABS
Fixes: unknown_unknown_19e_414_cov_764838672_bellhamlam.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 053e80f6ea
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
c09fe0346d
commit
79b16c6e5e
@ -2083,7 +2083,7 @@ static int mov_read_ctts(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
av_dlog(c->fc, "count=%d, duration=%d\n",
|
||||
count, duration);
|
||||
|
||||
if (FFABS(duration) > (1<<28) && i+2<entries) {
|
||||
if (FFNABS(duration) < -(1<<28) && i+2<entries) {
|
||||
av_log(c->fc, AV_LOG_WARNING, "CTTS invalid\n");
|
||||
av_freep(&sc->ctts_data);
|
||||
sc->ctts_count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user