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>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commiteecb0ecf51ed9f270832a66c85949d5731e626af
treec73aa9029978374ccdb88f4f2f2c424dbe3a8c64
parent68f9a9fe4bcba2db62a3cb43b3013bf58368fb6d
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