This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.1 in repository ffmpeg.
commit 1d24758bd113b2881a26784bdade83e2fb987594 Author: Michael Niedermayer <[email protected]> AuthorDate: Sun May 3 14:54:56 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun May 3 19:25:00 2026 +0200 swscale/swscale: Check srcSliceY and srcSliceH Obviously noone should pass negative values, they make no sense, but better to explicitly check Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit 7d0837a7422bc67dcd0ee8e22a7f1905c0ebd998) Signed-off-by: Michael Niedermayer <[email protected]> --- libswscale/swscale.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index e4dbef8098..cd4ef9676b 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -1037,6 +1037,8 @@ static int scale_internal(SwsContext *sws, if ((srcSliceY & (macro_height_src - 1)) || ((srcSliceH & (macro_height_src - 1)) && srcSliceY + srcSliceH != sws->src_h) || srcSliceY + srcSliceH > sws->src_h || + srcSliceY < 0 || + srcSliceH < 0 || (isBayer(sws->src_format) && srcSliceH <= 1)) { av_log(c, AV_LOG_ERROR, "Slice parameters %d, %d are invalid\n", srcSliceY, srcSliceH); return AVERROR(EINVAL); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
