diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-03-08 21:35:51 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-03-12 04:38:14 +0100 |
commit | ce010655a6b82d49bd8df179d73bcb5802a273c1 (patch) | |
tree | 661b41688c38b22ea90e7e9a7ed089edcc1da52f /libavcodec | |
parent | 44e2105189ac66637f34c764febc349238250b1d (diff) | |
download | ffmpeg-ce010655a6b82d49bd8df179d73bcb5802a273c1.tar.gz |
avcodec/dca_xll: Fix runtime error: signed integer overflow: 2147286116 + 6298923 cannot be represented in type 'int'
Fixes: 732/clusterfuzz-testcase-4872990070145024
See: [FFmpeg-devel] [PATCH 2/6] avcodec/dca_xll: Fix runtime error: signed integer overflow: 2147286116 + 6298923 cannot be represented in type 'int'
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')
-rw-r--r-- | libavcodec/dca_xll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dca_xll.c b/libavcodec/dca_xll.c index b7331e04b9..38a1999fc8 100644 --- a/libavcodec/dca_xll.c +++ b/libavcodec/dca_xll.c @@ -1312,7 +1312,7 @@ static int combine_residual_frame(DCAXllDecoder *s, DCAXllChSet *c) } else { // No downmix scaling for (n = 0; n < nsamples; n++) - dst[n] += (src[n] + round) >> shift; + dst[n] += (unsigned)((src[n] + round) >> shift); } } |