[FFmpeg-cvslog] swscale/utils: Fix xInc overflow
Michael Niedermayer
git at videolan.org
Sun Apr 14 04:45:16 EEST 2024
ffmpeg | branch: release/6.1 | Michael Niedermayer <michael at niedermayer.cc> | Thu Apr 4 00:31:40 2024 +0200| [610da8475f838230c40e7c1f94fd103e961684a8] | committer: Michael Niedermayer
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 at niedermayer.cc>
(cherry picked from commit 1a9eda65d027e0167f7363e0514f71311ac5d8d1)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=610da8475f838230c40e7c1f94fd103e961684a8
---
libswscale/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libswscale/utils.c b/libswscale/utils.c
index d78a6d50ff..d50b437a62 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -564,7 +564,7 @@ static av_cold int initFilter(int16_t **outFilter, int32_t **filterPos,
filter[i * filterSize + j] = coeff;
xx++;
}
- xDstInSrc += 2 * xInc;
+ xDstInSrc += 2LL * xInc;
}
}
More information about the ffmpeg-cvslog
mailing list