This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/6.1 in repository ffmpeg.
commit 34f2f9d830e7545f0c3a26f7ecbfb0faf6bd8ff9 Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Mar 3 20:24:36 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Mon May 4 17:13:27 2026 +0200 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]> (cherry picked from commit 9adced32785ce11a5923af12d72c25c0c2907e8b) 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 774f137353..bc7d943721 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -538,8 +538,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]
