avformat/utils: Use av_sat_sub64() in max_analyze_duration check
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 10 Nov 2020 21:27:47 +0000 (22:27 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 29 Jan 2021 18:36:46 +0000 (19:36 +0100)
commitc6edbf009063275365362c343fdbd6d24c838e3f
treed5a5e4cef2c2355b8b3e1d899acfb5f08af99d29
parentd03f0ec9a1ce9903ae533059d30758bede238e40
avformat/utils: Use av_sat_sub64() in max_analyze_duration check

Fixes: signed integer overflow: 9223372036854710272 - -541165944832 cannot be represented in type 'long'
Fixes: 27000/clusterfuzz-testcase-minimized-ffmpeg_dem_IVF_fuzzer-5643670608674816

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