summaryrefslogtreecommitdiffstats
path: root/libavcodec/aacdec_fixed.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-10-27 02:23:21 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-10-30 21:32:26 +0100
commit41d96af2a74cb5df50346b160067facd43149667 (patch)
tree82077b916f300fe371f79e0dcb1c95ba2ebcee01 /libavcodec/aacdec_fixed.c
parent0976752420706c0a8b3cb8fd61497a47c7d7270f (diff)
downloadffmpeg-streaming-41d96af2a74cb5df50346b160067facd43149667.zip
ffmpeg-streaming-41d96af2a74cb5df50346b160067facd43149667.tar.gz
avcodec/aacdec_fixed: Fix integer overflow in apply_dependent_coupling_fixed()
Fixes: runtime error: signed integer overflow: 623487 * 536870912 cannot be represented in type 'int' Fixes: 3594/clusterfuzz-testcase-minimized-4650622935629824 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/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 5e9249c..d802f38 100644
--- a/libavcodec/aacdec_fixed.c
+++ b/libavcodec/aacdec_fixed.c
@@ -394,7 +394,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 * (1 << shift);
+ dest[group * 128 + k] += tmp * (1U << shift);
}
}
}
OpenPOWER on IntegriCloud