avcodec/wavpack: Fix undefined integer negation
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 19 Jun 2017 12:08:58 +0000 (14:08 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 23 Aug 2017 11:15:18 +0000 (13:15 +0200)
commit3b38db6af045c7297429f14757d39b0542a65311
tree9c1d5fb2961f28bb83955d2f4e68a8c9998101da
parent3716850e283808cded57a09f5e025af642b6af5a
avcodec/wavpack: Fix undefined integer negation

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

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