mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 01:32:42 +00:00
gst/gsturi.c: Don't segfault on input like "tel:+1-123-555-1234".
Original commit message from CVS: * gst/gsturi.c: Don't segfault on input like "tel:+1-123-555-1234".
This commit is contained in:
parent
c17a8ce88a
commit
4eebee56fd
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-08-28 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
|
* gst/gsturi.c:
|
||||||
|
Don't segfault on input like "tel:+1-123-555-1234".
|
||||||
|
|
||||||
2008-08-27 Stefan Kost <ensonic@users.sf.net>
|
2008-08-27 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* gst/gstobject.c:
|
* gst/gstobject.c:
|
||||||
|
|
|
@ -424,6 +424,8 @@ gst_uri_get_location (const gchar * uri)
|
||||||
g_return_val_if_fail (gst_uri_is_valid (uri), NULL);
|
g_return_val_if_fail (gst_uri_is_valid (uri), NULL);
|
||||||
|
|
||||||
colon = strstr (uri, "://");
|
colon = strstr (uri, "://");
|
||||||
|
if (!colon)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
unescaped = unescape_string (colon + 3, "/");
|
unescaped = unescape_string (colon + 3, "/");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue