This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.0 in repository ffmpeg.
commit 3b74ac0f096479b26f579b58652329443a5b0f69 Author: Michael Niedermayer <[email protected]> AuthorDate: Sun May 3 14:54:56 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun May 3 19:57:06 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 f4c7eccac4..7299df4736 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -1024,6 +1024,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]
