From 85fc5b73f9cee4bb0fb30eb069b2b27d0936d87a Mon Sep 17 00:00:00 2001 From: Eric Gallager Date: Fri, 12 Apr 2024 18:08:06 -0400 Subject: [PATCH] Update raptor_uri.c check for potential null pointer dereference; see dajobe/raptor#66 (untested) --- src/raptor_uri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raptor_uri.c b/src/raptor_uri.c index 53768e72..e993ed94 100644 --- a/src/raptor_uri.c +++ b/src/raptor_uri.c @@ -496,7 +496,7 @@ raptor_free_uri(raptor_uri *uri) } /* this does not free the uri */ - if(uri->world->uris_tree) + if(uri->world && uri->world->uris_tree) raptor_avltree_delete(uri->world->uris_tree, uri); if(uri->string)