mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
mpdparser: Don't allow network access when reading the XML data
This commit is contained in:
parent
35f468c0f0
commit
77b618ca77
1 changed files with 4 additions and 3 deletions
|
@ -2982,9 +2982,10 @@ gst_mpd_parse (GstMpdClient * client, const gchar * data, gint size)
|
||||||
* between the version it was compiled for and the actual shared
|
* between the version it was compiled for and the actual shared
|
||||||
* library used
|
* library used
|
||||||
*/
|
*/
|
||||||
LIBXML_TEST_VERSION
|
LIBXML_TEST_VERSION;
|
||||||
/* parse "data" into a document (which is a libxml2 tree structure xmlDoc) */
|
|
||||||
doc = xmlReadMemory (data, size, "noname.xml", NULL, 0);
|
/* parse "data" into a document (which is a libxml2 tree structure xmlDoc) */
|
||||||
|
doc = xmlReadMemory (data, size, "noname.xml", NULL, XML_PARSE_NONET);
|
||||||
if (doc == NULL) {
|
if (doc == NULL) {
|
||||||
GST_ERROR ("failed to parse the MPD file");
|
GST_ERROR ("failed to parse the MPD file");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue