Fixes: signed integer overflow: 2147483181 + 1024 cannot be represented in type 'int' Fixes: 61117/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VMIX_fuzzer-5387692433866752
Unified · Split
| @@ -148,7 +148,7 @@ static int decode_dcac(AVCodecContext *avctx, · 147 unmodified lines | |||
| 148 | ac_run = get_ue_golomb_long(ac_gb); | 148 | ac_run = get_ue_golomb_long(ac_gb); |
| 149 | } | 149 | } |
| 150 | 150 | ||
| 151 | block[0] = (dc << lshift) + add; | 151 | block[0] = ((unsigned)dc << lshift) + (unsigned)add; |
| 152 | s->idsp.idct_put(dst + x, linesize, block); | 152 | s->idsp.idct_put(dst + x, linesize, block); |
| 153 | } | 153 | } |
| 154 | 154 | ||