Commit 73f6f466 authored by Benjamin Otte's avatar Benjamin Otte

dataurisrc: Fix crash when semicolon is aprt of data

This URI is valid:
  data:,;base64
(It encodes the literal string ";base64")

But would lead to a crash because the code assumed the semicolon would
be placed before the colon.
parent 3c2312ce
......@@ -344,6 +344,9 @@ gst_data_uri_src_set_uri (GstURIHandler * handler, const gchar * uri,
if (data_start == NULL)
goto invalid_uri;
if (parameters_start > data_start)
parameters_start = NULL;
if (data_start != uri && parameters_start != uri)
mimetype =
g_strndup (uri,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment