Browse Source

mmsh: fixed printf injection bug in mmsh request

tags/n0.8
Kirill Zorin Michael Niedermayer 14 years ago
parent
commit
a0bafaabb0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mmsh.c

+ 1
- 1
libavformat/mmsh.c View File

@@ -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);


Loading…
Cancel
Save