diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-09 11:56:39 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-09 11:57:14 +0100 |
commit | b1620451b7d6f2230f71c7c2f1896525b85a3dd0 (patch) | |
tree | 263c031c4d022b9b63aeae532720f37c66765a97 /external/redland/raptor | |
parent | 44eedb0487bd88aa56d99234657cba153bb06631 (diff) |
external/redland: Work around -fsanitize=nonnull-attribute
Change-Id: Ibffc44da6e9d6fb02d43d8a2b7e143ff994d76a8
Diffstat (limited to 'external/redland/raptor')
-rw-r--r-- | external/redland/raptor/ubsan.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/external/redland/raptor/ubsan.patch b/external/redland/raptor/ubsan.patch new file mode 100644 index 000000000000..4be6e6a0e6b0 --- /dev/null +++ b/external/redland/raptor/ubsan.patch @@ -0,0 +1,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) { |