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

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

commit ac064d3975719ee60edb81d25e952cc15de82cbb
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Nov 11 19:22:26 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 15 21:19:57 2026 +0100

    avformat/http: reuse a connection only for the host it is connected to
    
    Fixes: sending credentials to another host
    Fixes: q0uD8AyJRreA
    Regression since: e03b034e45
    Credential disclosure Replicated through UnModified FFmpeg with a local 
HTTP server
    
    Found-by: mxyoor
    (cherry picked from commit b66d2aca0fc1b6d23c685c21ecbbca3ad8b32c79)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/http.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/http.c b/libavformat/http.c
index 2f4f522363..2fc3c5f402 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -343,6 +343,9 @@ static int http_open_cnx_internal(URLContext *h, 
AVDictionary **options)
 
     ff_url_join(buf, sizeof(buf), lower_proto, NULL, hostname, port, NULL);
 
+    if (s->hd && strcmp(s->hd->filename, buf))
+        ffurl_closep(&s->hd);
+
     if (!s->hd) {
         s->nb_connections++;
         err = ffurl_open_whitelist(&s->hd, buf, AVIO_FLAG_READ_WRITE,

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