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

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

commit e27d91ca712fdc73b31e83ecdba906a4e576686a
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun May 17 19:22:44 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Jun 14 04:58:59 2026 +0200

    avformat/mccdec: dont pass NULL to bytestream2_put_buffer()
    
    Fixes: passing NULL pointer
    
    Found-by: iceray-Li
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit 2bfc7ce3ecc3420aa4d60ac24fec8c7c9b3ab1e6)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/mccdec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/mccdec.c b/libavformat/mccdec.c
index 8a9eff4c2a..d23ceee4ed 100644
--- a/libavformat/mccdec.c
+++ b/libavformat/mccdec.c
@@ -312,7 +312,8 @@ static int mcc_read_header(AVFormatContext *s)
 
             if (v >= 16 && v <= 35) {
                 int idx = v - 16;
-                bytestream2_put_buffer(&pb, aliases[idx].value, 
aliases[idx].len);
+                if (aliases[idx].len)
+                    bytestream2_put_buffer(&pb, aliases[idx].value, 
aliases[idx].len);
             } else {
                 uint8_t vv;
 

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

Reply via email to