Fixes: signed integer overflow: 2097152000 + 107142979 cannot be represented in type 'int' Fixes: 67919/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVARC_fuzzer-5955101769400320
Unified · Split
| @@ -689,7 +689,7 @@ static int decode_5elp(AVCodecContext *avctx, · 688 unmodified lines | |||
| 689 | for (int o = 0; o < order; o++) | 689 | for (int o = 0; o < order; o++) |
| 690 | sum += s->filter[ch][o] * (unsigned)samples[n + 70 - o - 1]; | 690 | sum += s->filter[ch][o] * (unsigned)samples[n + 70 - o - 1]; |
| 691 | 691 | ||
| 692 | samples[n + 70] += ac_out[n] + (sum >> 4); | 692 | samples[n + 70] += ac_out[n] + (unsigned)(sum >> 4); |
| 693 | } | 693 | } |
| 694 | 694 | ||
| 695 | for (int n = 0; n < 70; n++) | 695 | for (int n = 0; n < 70; n++) |