avcodec/ac3dec_fixed: Fix integer overflow in scale_coefs()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 13 Jan 2018 23:39:39 +0000 (00:39 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Jan 2018 21:56:15 +0000 (22:56 +0100)
commitb51f1f5a1911b607e377d442cb9cbd74eb8d646a
tree376839e3c52fda436203a0749e46fffe68247b8c
parent3e499537a46f8e758103c26bf95363029e79bbd4
avcodec/ac3dec_fixed: Fix integer overflow in scale_coefs()

Fixes: runtime error: signed integer overflow: 2147483520 + 128 cannot be represented in type 'int'
Fixes: 4800/clusterfuzz-testcase-minimized-6110372403609600

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