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>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit4d4656e8cd094188ec2ada7f5bd6dbba14b52dd9
tree49ff58fb9394dc84587f3869dcb14362710f8457
parenta97335b1b3aec9fb449ddf1a8b33cdaf418bf1a2
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>
(cherry picked from commit 8e50bd61e4ff97bd7fc6cbd7ec4ca514e17a70c4)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/wavpack.c