avcodec/ffwavesynth: Check ts_end - ts_start for overflow
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 16 Jun 2019 14:12:42 +0000 (16:12 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commitc434a043ac081e0f5d8c166f8416346002d462fa
tree9233f5aed64224506bb1f2873b21ea1fd2bf05e0
parent92140d7b24e40797d171e73482e8d408fbdfbfd5
avcodec/ffwavesynth: Check ts_end - ts_start for overflow

Fixes: signed integer overflow: 2314885530818453536 - -8926099139098304480 cannot be represented in type 'long'
Fixes: 15259/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFWAVESYNTH_fuzzer-5764366093254656

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 2db7a3bc4acdd293ed10b71e55f16a45ca28b629)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ffwavesynth.c