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 b99c6fc8c3 avformat/dashdec: Fail with any inner stream count being 0
b99c6fc8c3 is described below

commit b99c6fc8c362062f00f1eafd763d4449ad2ad512
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat May 16 20:35:11 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sat Jun 6 17:29:17 2026 +0000

    avformat/dashdec: Fail with any inner stream count being 0
    
    Fixes: ada-3-poc.mpd
    
    Found-by: Claude and Ada Logics. This issue was found by Anthropic from 
using agents to study security of open source projects, and I am from Ada 
Logics helping validate the found issues and report to maintainers.
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/dashdec.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 8536bb6575..4cfc871ad4 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -2173,6 +2173,8 @@ static int dash_read_header(AVFormatContext *s)
 
         if (ret)
             return ret;
+        if (rep->ctx->nb_streams == 0)
+            return AVERROR_PATCHWELCOME;
         stream_index += rep->ctx->nb_streams;
     }
 
@@ -2191,6 +2193,8 @@ static int dash_read_header(AVFormatContext *s)
 
         if (ret)
             return ret;
+        if (rep->ctx->nb_streams == 0)
+            return AVERROR_PATCHWELCOME;
         stream_index += rep->ctx->nb_streams;
     }
 
@@ -2209,6 +2213,8 @@ static int dash_read_header(AVFormatContext *s)
 
         if (ret)
             return ret;
+        if (rep->ctx->nb_streams == 0)
+            return AVERROR_PATCHWELCOME;
         stream_index += rep->ctx->nb_streams;
     }
 

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

Reply via email to