summaryrefslogtreecommitdiffstats
path: root/libavcodec/aacdec_fixed.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-06 22:09:59 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-11 13:02:12 +0200
commitad2296ab3a131d3560c385e43437841987166804 (patch)
tree698f609fbaa9203e3e75edc7349f076d083068c0 /libavcodec/aacdec_fixed.c
parent8ba1fc2a4ac21f56f90312ce3e2538d7a0b0f3b4 (diff)
downloadffmpeg-streaming-ad2296ab3a131d3560c385e43437841987166804.zip
ffmpeg-streaming-ad2296ab3a131d3560c385e43437841987166804.tar.gz
avcodec/aacdec_fixed: Fix various integer overflows
Fixes: 1377/clusterfuzz-testcase-minimized-5487049807233024 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/aacdec_fixed.c')
-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 acb8178..e3c68a9 100644
--- a/libavcodec/aacdec_fixed.c
+++ b/libavcodec/aacdec_fixed.c
@@ -180,7 +180,7 @@ static void subband_scale(int *dst, int *src, int scale, int offset, int len)
}
else {
s = s + 32;
- round = 1 << (s-1);
+ round = 1U << (s-1);
for (i=0; i<len; i++) {
out = (int)((int64_t)((int64_t)src[i] * c + round) >> s);
dst[i] = out * ssign;
OpenPOWER on IntegriCloud