Commit 4e3ab1a5 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/ac3dec_fixed: Fix multiple runtime error: signed integer overflow:...

avcodec/ac3dec_fixed: Fix multiple runtime error: signed integer overflow: -39271008 * 59 cannot be represented in type 'int'

Fixes: 2113/clusterfuzz-testcase-minimized-6510704959946752

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpegSigned-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent f7f60749
...@@ -65,7 +65,7 @@ static void scale_coefs ( ...@@ -65,7 +65,7 @@ static void scale_coefs (
int len) int len)
{ {
int i, shift, round; int i, shift, round;
int16_t mul; unsigned mul;
int temp, temp1, temp2, temp3, temp4, temp5, temp6, temp7; int temp, temp1, temp2, temp3, temp4, temp5, temp6, temp7;
mul = (dynrng & 0x1f) + 0x20; mul = (dynrng & 0x1f) + 0x20;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment