1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

swscale/utils: Fix xInc overflow

Fixes: signed integer overflow: 2 * 1073741824 cannot be represented in type 'int'
Fixes: 67802/clusterfuzz-testcase-minimized-ffmpeg_SWS_fuzzer-6249515855183872

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 1a9eda65d0)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2024-04-04 00:31:40 +02:00
parent 6444e7c3c9
commit 5335c73b9f
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -541,7 +541,7 @@ static av_cold int initFilter(int16_t **outFilter, int32_t **filterPos,
filter[i * filterSize + j] = coeff;
xx++;
}
xDstInSrc += 2 * xInc;
xDstInSrc += 2LL * xInc;
}
}