fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / redland / raptor / ubsan.patch
blob4be6e6a0e6b0e3288eb4b0b30f51c3baa5775381
1 --- src/raptor_uri.c
2 +++ src/raptor_uri.c
3 @@ -1336,9 +1336,9 @@
4 !strncmp((const char*)base_detail->scheme,
5 (const char*)reference_detail->scheme,
6 base_detail->scheme_len) &&
7 - !strncmp((const char*)base_detail->authority,
8 + (base_detail->authority_len == 0 || !strncmp((const char*)base_detail->authority,
9 (const char*)reference_detail->authority,
10 - base_detail->authority_len)) {
11 + base_detail->authority_len))) {
13 if(!base_detail->path) {
14 if(reference_detail->path) {