You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/g729postfilter: Limit shift in long term filter
Fixes: shift exponent 34 is too large for 32-bit type 'int' Fixes: 57389/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ACELP_KELVIN_fuzzer-6229522659016704 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -353,7 +353,7 @@ static int16_t long_term_filter(AudioDSPContext *adsp, int pitch_delay_int,
|
|||||||
if (tmp > 0)
|
if (tmp > 0)
|
||||||
L_temp0 >>= tmp;
|
L_temp0 >>= tmp;
|
||||||
else
|
else
|
||||||
L_temp1 >>= -tmp;
|
L_temp1 >>= FFMIN(-tmp, 31);
|
||||||
|
|
||||||
/* Check if longer filter increases the values of R'(k). */
|
/* Check if longer filter increases the values of R'(k). */
|
||||||
if (L_temp1 > L_temp0) {
|
if (L_temp1 > L_temp0) {
|
||||||
|
Reference in New Issue
Block a user