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 ce82410ef81af791bf68f8f8700b87ed71034621 Author: Michael Niedermayer <[email protected]> AuthorDate: Wed May 6 04:15:25 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Jun 14 04:40:49 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 98a8954943..f48dfd1024 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]
