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 0568bbdb9aedce9b74378a8e6e048ee7dbe12d9b
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed May 6 04:15:25 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Jun 14 04:58:57 2026 +0200

    avcodec/cbs_h266_syntax_template: tighten sh_num_tiles_in_slice_minus1 
upper bound
    
    Fixes: out of array access
    
    Found-by: Vishal Panchani
    Fix suggested by: Vishal Panchani
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit b5c7c7d273f5027597d4af2410b6a3314ee4561b)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/cbs_h266_syntax_template.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cbs_h266_syntax_template.c 
b/libavcodec/cbs_h266_syntax_template.c
index 73106f3a4b..4c6a22dde0 100644
--- a/libavcodec/cbs_h266_syntax_template.c
+++ b/libavcodec/cbs_h266_syntax_template.c
@@ -3145,7 +3145,7 @@ static int FUNC(slice_header) (CodedBitstreamContext 
*ctx, RWContext *rw,
 
     if (!pps->pps_rect_slice_flag &&
         pps->num_tiles_in_pic - current->sh_slice_address > 1)
-        ue(sh_num_tiles_in_slice_minus1, 0, pps->num_tiles_in_pic - 1);
+        ue(sh_num_tiles_in_slice_minus1, 0, pps->num_tiles_in_pic - 1 - 
current->sh_slice_address);
     else
         infer(sh_num_tiles_in_slice_minus1, 0);
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to