mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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.
This commit is contained in:
parent
3c2312ce6b
commit
73f6f466c2
1 changed files with 3 additions and 0 deletions
|
@ -344,6 +344,9 @@ gst_data_uri_src_set_uri (GstURIHandler * handler, const gchar * uri,
|
||||||
if (data_start == NULL)
|
if (data_start == NULL)
|
||||||
goto invalid_uri;
|
goto invalid_uri;
|
||||||
|
|
||||||
|
if (parameters_start > data_start)
|
||||||
|
parameters_start = NULL;
|
||||||
|
|
||||||
if (data_start != uri && parameters_start != uri)
|
if (data_start != uri && parameters_start != uri)
|
||||||
mimetype =
|
mimetype =
|
||||||
g_strndup (uri,
|
g_strndup (uri,
|
||||||
|
|
Loading…
Reference in a new issue