Fixed: signed integer overflow: -2 * -1085502286 cannot be represented in type 'int' Fixed: 57986/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_FIXED_fuzzer-5123651145170944
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -2856,8 +2856,8 @@ static void imdct_and_windowing_eld(AACContext *ac, SingleChannelElement *sce) · 2855 unmodified lines | |||
| 2856 | ac->mdct512_fn(ac->mdct512, buf, in, sizeof(INTFLOAT)); | 2856 | ac->mdct512_fn(ac->mdct512, buf, in, sizeof(INTFLOAT)); |
| 2857 | 2857 | ||
| 2858 | for (i = 0; i < n; i+=2) { | 2858 | for (i = 0; i < n; i+=2) { |
| 2859 | buf[i + 0] = -(USE_FIXED + 1)*buf[i + 0]; | 2859 | buf[i + 0] = -(int)(USE_FIXED + 1U)*buf[i + 0]; |
| 2860 | buf[i + 1] = (USE_FIXED + 1)*buf[i + 1]; | 2860 | buf[i + 1] = (int)(USE_FIXED + 1U)*buf[i + 1]; |
| 2861 | } | 2861 | } |
| 2862 | // Like with the regular IMDCT at this point we still have the middle half | 2862 | // Like with the regular IMDCT at this point we still have the middle half |
| 2863 | // of a transform but with even symmetry on the left and odd symmetry on | 2863 | // of a transform but with even symmetry on the left and odd symmetry on |