Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Zorin <cyril.zorin@gmail.com>2011-06-15 21:18:29 +0400
committerMichael Niedermayer <michaelni@gmx.at>2011-06-16 05:15:21 +0400
commita0bafaabb0656ca3bb3591beba0de79f6153fdac (patch)
treee35376f5fe61fd3c950f393b7df8487255e3da9e /libavformat
parent7f2228dbfec0268b8b486573041043c0de1aa381 (diff)
mmsh: fixed printf injection bug in mmsh request
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mmsh.c2
1 files changed, 1 insertions, 1 deletions
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);