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 abad70c575 fftools/ffprobe: refuse the diagram output formats
abad70c575 is described below

commit abad70c57548cc8089d81a1126f02b20f3e95e8e
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Sep 15 06:15:16 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Mon Sep 28 03:37:32 2026 +0000

    fftools/ffprobe: refuse the diagram output formats
    
    The mermaid formatters draw filter graphs and need the diagram
    configuration that only graphprint provides, so selecting them with
    -of made ffprobe dereference a NULL configuration while printing the
    root section.
    
    Fixes: NULL pointer dereference
    Fixes: sgcKd3ZT8oua
    Found-by: Zheng Yu @ Depthfirst
---
 fftools/ffprobe.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index 55a7ebf84b..3051fe43b5 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -3467,6 +3467,11 @@ int main(int argc, char **argv)
         ret = AVERROR(EINVAL);
         goto end;
     }
+    if (f->flags & AV_TEXTFORMAT_FLAG_IS_DIAGRAM_FORMATTER) {
+        av_log(NULL, AV_LOG_ERROR, "Output format '%s' can only draw filter 
graphs\n", f_name);
+        ret = AVERROR(EINVAL);
+        goto end;
+    }
 
     if (data_dump_format) {
         if (!strcmp(data_dump_format, "xxd")) {

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