avcodec/wavpack: Fix integer overflow in FFABS
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Jan 2018 01:50:18 +0000 (02:50 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Feb 2018 20:37:19 +0000 (21:37 +0100)
commit8e50bd61e4ff97bd7fc6cbd7ec4ca514e17a70c4
tree04bf0e08591fa09e1019a98c9253a09f8be830e6
parentc86490c49a3d0683b2f63338430a369c174e2bd5
avcodec/wavpack: Fix integer overflow in FFABS

Fixes: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
Fixes: 5396/clusterfuzz-testcase-minimized-6558555529281536

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