Fixes: signed integer overflow: 2097152000 + 107142979 cannot be represented in type 'int' Fixes: 67919/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVARC_fuzzer-5955101769400320
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -689,7 +689,7 @@ static int decode_5elp(AVCodecContext *avctx, · 688 unmodified lines | ||
| 689 | 689 | for (int o = 0; o < order; o++) |
| 690 | 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 | 695 | for (int n = 0; n < 70; n++) |