avcodec/wavpack: Fix overflow in adding tail
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 7 Jun 2018 22:07:04 +0000 (00:07 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commit23fdebaec5796268561dc8a10a68cbe32b8396a4
treec25d7fa588193515ce45c698cc9808b7504c72d3
parent50e55b81be23bed6a5aa836fdde602494b41c06c
avcodec/wavpack: Fix overflow in adding tail

Fixes: signed integer overflow: 2146907204 + 26846088 cannot be represented in type 'int'
Fixes: 8105/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVPACK_fuzzer-6233036682166272

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