summaryrefslogtreecommitdiff
path: root/external/redland/raptor/ubsan.patch
blob: 4be6e6a0e6b0e3288eb4b0b30f51c3baa5775381 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- src/raptor_uri.c
+++ src/raptor_uri.c
@@ -1336,9 +1336,9 @@
      !strncmp((const char*)base_detail->scheme, 
               (const char*)reference_detail->scheme,
               base_detail->scheme_len) &&
-     !strncmp((const char*)base_detail->authority, 
+     (base_detail->authority_len == 0 || !strncmp((const char*)base_detail->authority, 
               (const char*)reference_detail->authority,
-              base_detail->authority_len)) {
+              base_detail->authority_len))) {
     
     if(!base_detail->path) {
       if(reference_detail->path) {