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

Git pushed a commit to branch master
in repository ffmpeg.

commit bba9bf7e7e3d14092d97a4812382cbb88b565748
Author:     Zhao Zhili <[email protected]>
AuthorDate: Wed Apr 1 21:07:21 2026 +0800
Commit:     James Almer <[email protected]>
CommitDate: Wed Apr 1 14:17:27 2026 +0000

    avcodec/libdav1d: fix null pointer dereference in LCEVC side data handling
    
    ff_frame_new_side_data() may set sd to NULL and return 0 when
    side_data_pref() determines that existing side data should be
    preferred.
    
    Signed-off-by: Zhao Zhili <[email protected]>
---
 libavcodec/libdav1d.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c
index d9755a45b2..ae810b7abd 100644
--- a/libavcodec/libdav1d.c
+++ b/libavcodec/libdav1d.c
@@ -459,6 +459,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
                                          bytestream2_get_bytes_left(&gb), &sd);
             if (res < 0)
                 return res;
+            if (!sd)
+                break;
 
             bytestream2_get_bufferu(&gb, sd->data, sd->size);
             break;

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

Reply via email to