Fixes: signed integer overflow: -2147483648 + -25122315 cannot be represented in type 'int' Fixes: 62285/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVARC_fuzzer-6199806972198912
Unified · Split
| @@ -374,7 +374,7 @@ static int decode_2slp(AVCodecContext *avctx, · 373 unmodified lines | |||
| 374 | for (int o = 0; o < order; o++) | 374 | for (int o = 0; o < order; o++) |
| 375 | sum += s->filter[ch][o] * (unsigned)samples[n + 70 - o - 1]; | 375 | sum += s->filter[ch][o] * (unsigned)samples[n + 70 - o - 1]; |
| 376 | 376 | ||
| 377 | samples[n + 70] = get_srice(gb, k) + (sum >> 4); | 377 | samples[n + 70] = get_srice(gb, k) + (unsigned)(sum >> 4); |
| 378 | } | 378 | } |
| 379 | finished = 1; | 379 | finished = 1; |
| 380 | break; | 380 | break; |