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

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

commit 377fb77be3db70741c384fb2ed71884a1be3e99a
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun May 17 19:22:44 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Jun 14 04:40:51 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 4384704f32..9d72e5545e 100644
--- a/libavformat/mccdec.c
+++ b/libavformat/mccdec.c
@@ -313,7 +313,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