This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.0 in repository ffmpeg.
commit 6c5dad52b2b6d97ab090da0bef63d6ab31b4eaf4 Author: Michael Niedermayer <[email protected]> AuthorDate: Thu May 28 21:37:38 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Jun 14 04:59:04 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]
