This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/4.4 in repository ffmpeg.
commit 72b2d5791b2e410fb2ee4a6537a97e2acebc67a9 Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Mar 3 18:23:39 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Tue May 5 18:55:06 2026 +0200 swscale/output: Fixes integer overflow in yuv2planeX_8_c Fixes: integer overflow (does not replicate, but looks like it should overflow with some craftet parameters) Fixes: #21584 Found-by: HAORAN FANG Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit a59180022af5447d8b2847f539fb99c859175e95) Signed-off-by: Michael Niedermayer <[email protected]> --- libswscale/output.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libswscale/output.c b/libswscale/output.c index 49af3818b9..d7bd0b941f 100644 --- a/libswscale/output.c +++ b/libswscale/output.c @@ -387,8 +387,10 @@ static void yuv2planeX_8_c(const int16_t *filter, int filterSize, for (i=0; i<dstW; i++) { int val = dither[(i + offset) & 7] << 12; int j; - for (j=0; j<filterSize; j++) - val += src[j][i] * filter[j]; + for (j=0; j<filterSize; j++) { + val += (unsigned)(src[j][i] * filter[j]); + + } dest[i]= av_clip_uint8(val>>19); } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
