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>
Mon, 12 Feb 2018 02:02:29 +0000 (03:02 +0100)
commit263bddf78159668383afadf1c2db73f74b265377
tree7da7f30a0b63c1c7cb4a2060d563e4b4f3275830
parent5b6324a94c2086fcd243f2f615024b32fa1e27ce
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