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>
Sun, 10 Jun 2018 22:51:20 +0000 (00:51 +0200)
commitd13379fb79708f550460dd6d698023bf26f968d5
tree6ea8319d392fb66fe0edfc981af18e322bb1db58
parentd9f72e53bfe76b5c40bb444f0a81617dffdfedf4
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>
libavcodec/wavpack.c