mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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>
This commit is contained in:
parent
3e499537a4
commit
b51f1f5a19
@ -64,8 +64,8 @@ static void scale_coefs (
|
|||||||
int dynrng,
|
int dynrng,
|
||||||
int len)
|
int len)
|
||||||
{
|
{
|
||||||
int i, shift, round;
|
int i, shift;
|
||||||
unsigned mul;
|
unsigned mul, round;
|
||||||
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user