Commit ce010655 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/dca_xll: Fix runtime error: signed integer overflow: 2147286116 +...

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/ffmpegSigned-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 44e21051
...@@ -1312,7 +1312,7 @@ static int combine_residual_frame(DCAXllDecoder *s, DCAXllChSet *c) ...@@ -1312,7 +1312,7 @@ static int combine_residual_frame(DCAXllDecoder *s, DCAXllChSet *c)
} else { } else {
// No downmix scaling // No downmix scaling
for (n = 0; n < nsamples; n++) for (n = 0; n < nsamples; n++)
dst[n] += (src[n] + round) >> shift; dst[n] += (unsigned)((src[n] + round) >> shift);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment