You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
mmsh: fixed printf injection bug in mmsh request
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
committed by
Martin Storsjö
parent
7cbc2e60af
commit
6095388812
@@ -231,7 +231,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags)
|
|||||||
host, sizeof(host), &port, path, sizeof(path), location);
|
host, sizeof(host), &port, path, sizeof(path), location);
|
||||||
if (port<0)
|
if (port<0)
|
||||||
port = 80; // default mmsh protocol port
|
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) {
|
if (ffurl_alloc(&mms->mms_hd, httpname, AVIO_FLAG_READ) < 0) {
|
||||||
return AVERROR(EIO);
|
return AVERROR(EIO);
|
||||||
|
Reference in New Issue
Block a user