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

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

commit c3229b16e6d01574db60374e105add772ab8d602
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu May 28 21:37:38 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Jun 18 20:30:56 2026 +0200

    avformat/ftp: Check string used for RNTO
    
    Found-by: Forgejo Fairy
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit 4d24cb1c39c049cb49b89578e55f233700267921)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/ftp.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/ftp.c b/libavformat/ftp.c
index fc769c9d74..6cd46e7d8b 100644
--- a/libavformat/ftp.c
+++ b/libavformat/ftp.c
@@ -1171,6 +1171,10 @@ static int ftp_move(URLContext *h_src, URLContext *h_dst)
     av_url_split(0, 0, 0, 0, 0, 0, 0,
                  path, sizeof(path),
                  h_dst->filename);
+    if (is_bad_string(path)) {
+        ret = AVERROR(EINVAL);
+        goto cleanup;
+    }
     ret = snprintf(command, sizeof(command), "RNTO %s\r\n", path);
     if (ret >= sizeof(command)) {
         ret = AVERROR(ENOSYS);

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

Reply via email to