avformat/utils: Check rfps_duration_sum for overflow
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 4 Jul 2019 21:01:19 +0000 (23:01 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 19 Jul 2019 19:42:38 +0000 (21:42 +0200)
commit5c46fdf305caac8bf2f270e69e60ae3d614df468
tree041dba31595c1324e5146bbef18e93aac8e04251
parent6ebbfb377f7b6dcbf6a5c85b10109e838bd6e675
avformat/utils: Check rfps_duration_sum for overflow

Fixes: signed integer overflow: 9151595917793558550 + 297519050751678697 cannot be represented in type 'long'
Fixes: 15496/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5722866475073536

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c