avformat/utils: Avoid overflow in codec_info_duration computation for subtitles
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 9 Jun 2021 19:10:32 +0000 (21:10 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Jun 2021 18:53:56 +0000 (20:53 +0200)
commit4afa465eb33263dec1d0ef6e75ff931242447d66
tree56dbb4733899070201edc42b84b465e1abc66d10
parent71b264c8fa70821330df9c71f238d5aa1eef5a7d
avformat/utils: Avoid overflow in codec_info_duration computation for subtitles

Fixes: signed integer overflow: 9223126845747118112 - -2594073385365397472 cannot be represented in type 'long'
Fixes: 34936/clusterfuzz-testcase-minimized-ffmpeg_dem_MATROSKA_fuzzer-6739888002170880

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 ffe4851e2359e17c4406ab05e2e31fc7ef68de95)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c