avcodec/wavpack: Fix integer overflow in wv_unpack_stereo()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 24 Jun 2017 22:13:53 +0000 (00:13 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 25 Jun 2017 00:52:40 +0000 (02:52 +0200)
commitfc24783c6d196ae6303f27dea98b89ceadbc2bfe
treec139d34056684a58dca288e96fbcaad679a3dad4
parenta2bde1363c9313d025fb5deed6caead1b0b04b78
avcodec/wavpack: Fix integer overflow in wv_unpack_stereo()

Fixes: runtime error: signed integer overflow: 2080374785 + 2080374784 cannot be represented in type 'int'
Fixes: 2351/clusterfuzz-testcase-minimized-5359403240783872

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