This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit a59180022af5447d8b2847f539fb99c859175e95 Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Mar 3 18:23:39 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Fri Mar 6 23:09:26 2026 +0100 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]> --- libswscale/output.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libswscale/output.c b/libswscale/output.c index 94454860c3..d660eeb12a 100644 --- a/libswscale/output.c +++ b/libswscale/output.c @@ -473,8 +473,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]
