From 4eebee56fd112f163d63eb7073bb47038a84cfe1 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 28 Aug 2008 10:45:04 +0000 Subject: [PATCH] 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". --- ChangeLog | 5 +++++ gst/gsturi.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index ab813d7e0f..d898834631 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-08-28 Stefan Kost + + * gst/gsturi.c: + Don't segfault on input like "tel:+1-123-555-1234". + 2008-08-27 Stefan Kost * gst/gstobject.c: diff --git a/gst/gsturi.c b/gst/gsturi.c index bd0f4d82de..44c8f45938 100644 --- a/gst/gsturi.c +++ b/gst/gsturi.c @@ -424,6 +424,8 @@ gst_uri_get_location (const gchar * uri) g_return_val_if_fail (gst_uri_is_valid (uri), NULL); colon = strstr (uri, "://"); + if (!colon) + return NULL; unescaped = unescape_string (colon + 3, "/");