diff options
author | Kirill Zorin <cyril.zorin@gmail.com> | 2011-06-15 19:18:29 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-06-16 03:15:21 +0200 |
commit | a0bafaabb0656ca3bb3591beba0de79f6153fdac (patch) | |
tree | e35376f5fe61fd3c950f393b7df8487255e3da9e | |
parent | 7f2228dbfec0268b8b486573041043c0de1aa381 (diff) | |
download | ffmpeg-a0bafaabb0656ca3bb3591beba0de79f6153fdac.tar.gz |
mmsh: fixed printf injection bug in mmsh request
-rw-r--r-- | libavformat/mmsh.c | 2 |
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); |