avformat/sbgdec: Check for overflow in timestamp preparation
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 27 Apr 2021 18:53:32 +0000 (20:53 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 31 Jul 2021 20:08:38 +0000 (22:08 +0200)
commit9dbed908403b0d97ae70881fab68020f148b6b11
tree439042df6d03981aa4e0fdab4e47e3683db02840
parent9d1c47ec033d038e04578eaf0767c8983250d03d
avformat/sbgdec: Check for overflow in timestamp preparation

Fixes: signed integer overflow: 9223372036854775807 + 86400000000 cannot be represented in type 'long'
Fixes: 29102/clusterfuzz-testcase-minimized-ffmpeg_dem_SBG_fuzzer-6731040263634944

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