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

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

commit 1f56ddf366b80239eda2c90fe06b716241832a73
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu May 28 21:37:38 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Jun 14 19:38:55 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 951d575aeb..a06e9ed77c 100644
--- a/libavformat/ftp.c
+++ b/libavformat/ftp.c
@@ -1170,6 +1170,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