aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-06-11 14:32:35 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-06-11 15:23:23 +0200
commit295b24643ecfcdac7ce20d99a50d74d554c73d36 (patch)
tree0f738e6cc01c166de738bf877d8fe9aeade1f360
parentf0f9fa21846023d3c9522d6e32e70ea7ecf879d6 (diff)
downloadffmpeg-295b24643ecfcdac7ce20d99a50d74d554c73d36.tar.gz
avcodec/aacdec_fixed: Fix runtime error: left shift of negative value -1297616
Fixes: 2195/clusterfuzz-testcase-minimized-4736721533009920 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 6d499ecef9c2467772b6066176ffda0b7ab27cc2) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/aacdec_fixed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacdec_fixed.c b/libavcodec/aacdec_fixed.c
index f4503ca137..a72c1e34da 100644
--- a/libavcodec/aacdec_fixed.c
+++ b/libavcodec/aacdec_fixed.c
@@ -388,7 +388,7 @@ static void apply_dependent_coupling_fixed(AACContext *ac,
for (k = offsets[i]; k < offsets[i + 1]; k++) {
tmp = (int)(((int64_t)src[group * 128 + k] * c + \
(int64_t)0x1000000000) >> 37);
- dest[group * 128 + k] += tmp << shift;
+ dest[group * 128 + k] += tmp * (1 << shift);
}
}
}