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

Git pushed a commit to branch master
in repository ffmpeg.

commit b5902e69c71bf556958f9fded99d1bcea2d7298c
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Oct 7 01:27:55 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sun Oct 11 02:37:58 2026 +0000

    avformat/dash: Do not write into zero sized buffers in 
ff_dash_fill_tmpl_params()
    
    The check is the one recommended in the report.
    
    Fixes: lNi0cBMALYfT
    Fixes: AISLE-2026-0111-00522
    Fixes: AISLE-2026-0110-00522
    Fixes: AISLE-2026-0109-00522
    Found-by: Joshua Rogers <[email protected]>
---
 libavformat/dash.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/dash.c b/libavformat/dash.c
index fddfa82340..6c27fb5781 100644
--- a/libavformat/dash.c
+++ b/libavformat/dash.c
@@ -98,6 +98,8 @@ void ff_dash_fill_tmpl_params(char *dst, size_t buffer_size,
                                   int64_t time) {
     int dst_pos = 0;
     const char *t_cur = template;
+    if (!buffer_size)
+        return;
     while (dst_pos < buffer_size - 1 && *t_cur) {
         char format_tag[7]; // May be "%d", "%0Xd", or "%0Xlld" (for $Time$), 
where X is in [0-9]
         int n = 0;

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