avformat/utils: check dts/duration to be representable before using them
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 18 Apr 2021 20:39:30 +0000 (22:39 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Jun 2021 18:53:56 +0000 (20:53 +0200)
commit71b264c8fa70821330df9c71f238d5aa1eef5a7d
tree39284ca5ffcb97fe3b70c0372a8bfcca8c25b06e
parenta21c64199cddbea0356c98afa756fcf158634fd8
avformat/utils: check dts/duration to be representable before using them

Fixes: signed integer overflow: 6854513951393103890 + 3427256975738527712 cannot be represented in type 'long'
Fixes: 32936/clusterfuzz-testcase-minimized-ffmpeg_dem_R3D_fuzzer-5236914752978944

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