Gtk-WARNING gtktreestore.c:1047: Invalid column number 1 added to iter
[LibreOffice.git] / external / redland / raptor / ubsan.patch
blob54b041e80f1f6f339ad44138096b4504be3f976b
1 --- src/raptor_rfc2396.c
2 +++ src/raptor_rfc2396.c
3 @@ -386,7 +386,7 @@
4 }
7 - if(prev && s == (cur+2) && cur[0] == '.' && cur[1] == '.') {
8 + if(prev && cur && s == (cur+2) && cur[0] == '.' && cur[1] == '.') {
9 /* Remove <component>/.. at the end of the path */
10 *prev = '\0';
11 path_len -= (s-prev);