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

Git pushed a commit to branch release/6.1
in repository ffmpeg.

commit 67e4f737ed888d2dcdb64cd53d0a7983a35e00a6
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Tue Aug 6 19:47:49 2024 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sat Jun 20 17:42:28 2026 +0200

    avcodec/cbs_sei: Always zero-initialize SEI payload
    
    Fixes: Use-of-uninitialized value
    Fixes: 
clusterfuzz-testcase-minimized-ffmpeg_BSF_H264_METADATA_fuzzer-5458626041413632
    
    Reviewed-by: Michael Niedermayer <[email protected]>
    Signed-off-by: Andreas Rheinhardt <[email protected]>
    (cherry picked from commit bfcee368e28823b1289240ae061ccc8ee28cf33e)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/cbs_sei.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavcodec/cbs_sei.c b/libavcodec/cbs_sei.c
index e28c2f9093..7ca6609fa1 100644
--- a/libavcodec/cbs_sei.c
+++ b/libavcodec/cbs_sei.c
@@ -40,7 +40,6 @@ int ff_cbs_sei_alloc_message_payload(SEIRawMessage *message,
                                      const SEIMessageTypeDescriptor *desc)
 {
     void (*free_func)(FFRefStructOpaque, void*);
-    unsigned flags = 0;
 
     av_assert0(message->payload     == NULL &&
                message->payload_ref == NULL);
@@ -52,10 +51,9 @@ int ff_cbs_sei_alloc_message_payload(SEIRawMessage *message,
         free_func = &cbs_free_user_data_unregistered;
     else {
         free_func = NULL;
-        flags = FF_REFSTRUCT_FLAG_NO_ZEROING;
     }
 
-    message->payload_ref = ff_refstruct_alloc_ext(desc->size, flags,
+    message->payload_ref = ff_refstruct_alloc_ext(desc->size, 0,
                                                   NULL, free_func);
     if (!message->payload_ref)
         return AVERROR(ENOMEM);

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

Reply via email to