raptor/ubsan.patch
Dirk Mueller 6a3139e3fd - update to 2.0.16:
* long list of accumulated bug, security and portability fixes
  * see https://librdf.org/raptor/RELEASE.html#rel2_0_16
- drop
  0001-Calcualte-max-nspace-declarations-correctly-for-XML-.patch.1:
  obsolete/upstream
- ubsan.patch: refresh

OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/raptor?expand=0&rev=45
2023-03-07 12:24:43 +00:00

14 lines
461 B
Diff

Index: src/raptor_rfc2396.c
===================================================================
--- src/raptor_rfc2396.c.orig
+++ src/raptor_rfc2396.c
@@ -386,7 +386,7 @@ raptor_uri_normalize_path(unsigned char*
}
- if(prev && s == (cur+2) && cur[0] == '.' && cur[1] == '.') {
+ if(prev && cur && s == (cur+2) && cur[0] == '.' && cur[1] == '.') {
/* Remove <component>/.. at the end of the path */
*prev = '\0';
path_len -= (s-prev);