This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 9adced32785ce11a5923af12d72c25c0c2907e8b Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Mar 3 20:24:36 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Fri Mar 6 23:09:44 2026 +0100 avfilter/vf_scale: Fix integer overflow in config_props() Fixes: signed integer overflow: 536870944 * 16 cannot be represented in type 'int' Fixes: #21587 Found-by: HAORAN FANG Signed-off-by: Michael Niedermayer <[email protected]> --- libavfilter/vf_scale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index 61d3ee0a0f..d113298ff0 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -649,8 +649,8 @@ static int config_props(AVFilterLink *outlink) if (outlink->w > INT_MAX || outlink->h > INT_MAX || - (outlink->h * inlink->w) > INT_MAX || - (outlink->w * inlink->h) > INT_MAX) + (outlink->h * (uint64_t)inlink->w) > INT_MAX || + (outlink->w * (uint64_t)inlink->h) > INT_MAX) av_log(ctx, AV_LOG_ERROR, "Rescaled value for width or height is too big.\n"); /* TODO: make algorithm configurable */ _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
