aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill Zorin <cyril.zorin@gmail.com>2011-06-15 19:18:29 +0200
committerMartin Storsjö <martin@martin.st>2011-06-16 17:40:21 +0300
commit6095388812ce1b2a95e9917b89e5857639208f88 (patch)
treefde326fdd7f66535ca5742b8f90db36c48a41b4d
parent7cbc2e60af72e2154ddc160b1bfce200a95a6532 (diff)
downloadffmpeg-6095388812ce1b2a95e9917b89e5857639208f88.tar.gz
mmsh: fixed printf injection bug in mmsh request
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavformat/mmsh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mmsh.c b/libavformat/mmsh.c
index b19973ea76..af040e27a9 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);