mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
mmsh: fixed printf injection bug in mmsh request
This commit is contained in:
parent
7f2228dbfe
commit
a0bafaabb0
@ -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…
Reference in New Issue
Block a user