avcodec/aacdec_fixed: Fix multiple shift exponent 33 is too large for 32-bit type 'int'
Fixes: 1471/clusterfuzz-testcase-minimized-6376460543590400
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3a0ff78168)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
35f293fe89
commit
363b46cdbf
1 changed files with 5 additions and 1 deletions
|
|
@ -171,7 +171,11 @@ static void subband_scale(int *dst, int *src, int scale, int offset, int len)
|
|||
|
||||
s = offset - (s >> 2);
|
||||
|
||||
if (s > 0) {
|
||||
if (s > 31) {
|
||||
for (i=0; i<len; i++) {
|
||||
dst[i] = 0;
|
||||
}
|
||||
} else if (s > 0) {
|
||||
round = 1 << (s-1);
|
||||
for (i=0; i<len; i++) {
|
||||
out = (int)(((int64_t)src[i] * c) >> 32);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue