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, 16 Jul 2018 17:06:26 +0000 (19:06 +0200)
commitbb7b9238b4121e608d98b6cef9272276ea74d59d
treefc9f04d841dbd8b763d48487c5509e152aeb358b
parent986747c9e25db3ac45bb4d8f6c73044080768b56
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