Browse Source

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/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 4e3ab1a5c1)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0.9
Michael Niedermayer 8 years ago
parent
commit
968036dbf9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/ac3dec_fixed.c

+ 1
- 1
libavcodec/ac3dec_fixed.c View File

@@ -65,7 +65,7 @@ static void scale_coefs (
int len)
{
int i, shift, round;
int16_t mul;
unsigned mul;
int temp, temp1, temp2, temp3, temp4, temp5, temp6, temp7;

mul = (dynrng & 0x1f) + 0x20;


Loading…
Cancel
Save