From a0bafaabb0656ca3bb3591beba0de79f6153fdac Mon Sep 17 00:00:00 2001 From: Kirill Zorin Date: Wed, 15 Jun 2011 19:18:29 +0200 Subject: [PATCH] mmsh: fixed printf injection bug in mmsh request --- libavformat/mmsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mmsh.c b/libavformat/mmsh.c index 9b432d1fb5..64760e8555 100644 --- a/libavformat/mmsh.c +++ b/libavformat/mmsh.c @@ -231,7 +231,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags) host, sizeof(host), &port, path, sizeof(path), location); if (port<0) port = 80; // default mmsh protocol port - ff_url_join(httpname, sizeof(httpname), "http", NULL, host, port, path); + ff_url_join(httpname, sizeof(httpname), "http", NULL, host, port, "%s", path); if (ffurl_alloc(&mms->mms_hd, httpname, AVIO_FLAG_READ) < 0) { return AVERROR(EIO);