This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/7.1 in repository ffmpeg.
commit 1516faadefad717ed979291d56fcae03430bb28a Author: Michael Niedermayer <[email protected]> AuthorDate: Wed May 6 04:15:25 2026 +0200 Commit: Frank Plowman <[email protected]> CommitDate: Wed Jun 10 15:12:24 2026 +0100 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) --- 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 1ec3fe185b..c7d93aff29 100644 --- a/libavcodec/cbs_h266_syntax_template.c +++ b/libavcodec/cbs_h266_syntax_template.c @@ -3134,7 +3134,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]
