This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 406d19261cfe58279876ecacd384d14bc714425f
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Oct 6 23:20:08 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sat Oct 10 21:30:33 2026 +0000

    avcodec/cbs_h266: Reject subpictures without slices
    
    Hardening for ccSUzeWGhBGj
    Found-by: Umar Pathan (Umar0x)
---
 libavcodec/cbs_h266_syntax_template.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/cbs_h266_syntax_template.c 
b/libavcodec/cbs_h266_syntax_template.c
index 6ad4039e1a..9e0776defe 100644
--- a/libavcodec/cbs_h266_syntax_template.c
+++ b/libavcodec/cbs_h266_syntax_template.c
@@ -2162,6 +2162,8 @@ static int FUNC(pps) (CodedBitstreamContext *ctx, 
RWContext *rw,
                         current->num_slices_in_subpic[i]++;
                     }
                 }
+                if (!current->num_slices_in_subpic[i])
+                    return AVERROR_INVALIDDATA;
                 num_slices += current->num_slices_in_subpic[i];
             }
             if (current->pps_num_slices_in_pic_minus1 + 1 != num_slices)

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to