]> git.sesse.net Git - ffmpeg/commit
avformat/r3d: Check samples before computing duration
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 10 Feb 2021 22:21:53 +0000 (23:21 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 12 Feb 2021 22:42:16 +0000 (23:42 +0100)
commit7a2aa5dc2af6c4fc66aaedd341b0886fbc746f0d
treeff0b3c3a66f0ae5c7d2e2642675cd187b67c91ae
parent5314a4996cc76e2a8534c74a66f5181e95ac64fc
avformat/r3d: Check samples before computing duration

Fixes: signed integer overflow: -4611686024827895807 + -4611686016279904256 cannot be represented in type 'long'
Fixes: 30161/clusterfuzz-testcase-minimized-ffmpeg_dem_R3D_fuzzer-5694406713802752
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/r3d.c