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

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 6ae78e8554 avformat/tee_common: reject slave options without a closing 
bracket
6ae78e8554 is described below

commit 6ae78e85548238b5887331e8f000a701a58fa125
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Sep 15 06:13:01 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Mon Sep 28 03:36:39 2026 +0000

    avformat/tee_common: reject slave options without a closing bracket
    
    Fixes: heap buffer overflow (read)
    Fixes: 9EkQ1uliNrFe
    Found-by: Zheng Yu @ Depthfirst
---
 libavformat/tee_common.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavformat/tee_common.c b/libavformat/tee_common.c
index e516b0a603..7b7148331a 100644
--- a/libavformat/tee_common.c
+++ b/libavformat/tee_common.c
@@ -21,6 +21,7 @@
 
 #include <string.h>
 
+#include "libavutil/error.h"
 #include "libavutil/log.h"
 #include "libavutil/opt.h"
 
@@ -58,6 +59,11 @@ int ff_tee_parse_slave_options(void *log, char *slave,
             goto fail;
         if (strspn(p, slave_opt_close))
             break;
+        if (!*p) {
+            av_log(log, AV_LOG_ERROR, "Unterminated slave options in 
\"%s\"\n", slave);
+            ret = AVERROR(EINVAL);
+            goto fail;
+        }
         p++;
     }
     *filename = (char *)p + 1;

-- 
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