From 95b4e327f1fe223bd83ff85488b8edf125c9681b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 3 Aug 2012 21:50:48 +0000 Subject: Fix crash when invalid plugin URIs are used. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4614 a436a847-0d15-0410-975c-d299462d15a1 --- src/world.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/world.c b/src/world.c index b26ff55..9ebdaac 100644 --- a/src/world.c +++ b/src/world.c @@ -267,6 +267,10 @@ struct LilvHeader* lilv_collection_get_by_uri(const ZixTree* const_seq, const LilvNode* uri) { + if (!lilv_node_is_uri(uri)) { + return NULL; + } + ZixTree* seq = (ZixTree*)const_seq; struct LilvHeader key = { NULL, (LilvNode*)uri }; -- cgit v1.2.1