mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avformat/mov: Check edit list for overflow
Fixes: 67492/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-5778297231310848
Fixes: signed integer overflow: 2314885530818453536 + 7782220156096217088 cannot be represented in type 'long'
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 2882d30e3a
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
2191f4f5d6
commit
8941956c32
@ -3683,6 +3683,10 @@ static int get_edit_list_entry(MOVContext *mov,
|
||||
}
|
||||
*edit_list_duration = av_rescale(*edit_list_duration, msc->time_scale,
|
||||
global_timescale);
|
||||
|
||||
if (*edit_list_duration + (uint64_t)*edit_list_media_time > INT64_MAX)
|
||||
*edit_list_duration = 0;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user