From ec4c48397641dbaf4ae8df36c32aaa5a311a11bf Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 20 Jan 2016 11:11:38 +0100 Subject: lavf: add a protocol whitelist/blacklist for file opened internally Should make the default behaviour safer for careless callers that open random untrusted files. Bug-Id: CVE-2016-1897 Bug-Id: CVE-2016-1898 --- libavformat/smoothstreamingenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/smoothstreamingenc.c') diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c index cfb1f8f1c9..1dbae7013d 100644 --- a/libavformat/smoothstreamingenc.c +++ b/libavformat/smoothstreamingenc.c @@ -312,7 +312,7 @@ static int ism_write_header(AVFormatContext *s) goto fail; } - c->protocols = ffurl_get_protocols(NULL, NULL); + c->protocols = ffurl_get_protocols(s->protocol_whitelist, s->protocol_blacklist); if (!c->protocols) { ret = AVERROR(ENOMEM); goto fail; -- cgit v1.2.3