avcodec/shorten: Fix integer overflow in residual/LPC combination
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 12 Aug 2018 20:55:59 +0000 (22:55 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commitf1425b389a3b7d4758d2b1faf97f2624e27c3819
tree166414a8863954daa1ebef971c2b9d95ca8a299a
parent5eeaaa29fae0d5c22e2e542bc3064b984e34c93b
avcodec/shorten: Fix integer overflow in residual/LPC combination

Fixes: signed integer overflow: -540538872 + -2012739576 cannot be represented in type 'int'
Fixes: 9255/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SHORTEN_fuzzer-5758630052757504

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