avcodec/alac: Fix integer overflow in lpc_prediction() with sign
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 8 Nov 2019 19:40:46 +0000 (20:40 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 1 Dec 2019 16:55:30 +0000 (17:55 +0100)
commit4d932eb66b037acf63bef4ce9a975a6f28f0e99a
tree3474b63105039fc241cbce8e429935104fda6ac1
parentf4daf42c1a5ce6ecf7234d804952536160870dba
avcodec/alac: Fix integer overflow in lpc_prediction() with sign

Fixes: signed integer overflow: -2147483648 * -1 cannot be represented in type 'int'
Fixes: 18643/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALAC_fuzzer-5672182449700864

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