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>
Sun, 18 Nov 2018 01:20:44 +0000 (02:20 +0100)
commiteba99acdf2673c07b43617f60b449f29b0a6177e
treee878c8b1179696a0f3f459b58a1d472d61729ba4
parentf20a35a13e4b789ccdc0c4dba27025984792a623
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