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

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

commit 0cda9f02e7da17a9b4a6be39582f30fc90cf0eee
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu May 28 21:37:38 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Jun 14 04:40:57 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 6e6c8b9940..3865177f99 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