avcodec/wavpack: Fix integer overflow in DEC_MED() / INC_MED()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 27 Apr 2018 19:44:07 +0000 (21:44 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commit04e69effbb31ba21ec5f5da625bcd1edafd8e286
tree0e515c5e6987dd9fe6412e0474d4c19b9dd1f379
parentbaa4913e1272211a3711078c9bcd0a8b935fc287
avcodec/wavpack: Fix integer overflow in DEC_MED() / INC_MED()

Fixes: runtime error: signed integer overflow: 2147483637 + 128 cannot be represented in type 'int'
Fixes: 6701/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVPACK_fuzzer-5358324934508544

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 6e95d80e6fae978f8a44afc24b0c5097a062719f)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/wavpack.h