office-gobmx/external/libxml2/ubsan.patch.0
Stephan Bergmann 79e15d33c8 external/libxml2: Simplify UBSan nullptr-with-offset fix
...that had been added with fcb2d8a87a
"external/libxml2: Avoid UBSan nullptr-with-offset"

Change-Id: I7ee234c8c6a868ed825a8ed3fa0dcdc69decb7ba
Reviewed-on: https://gerrit.libreoffice.org/81299
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-10-22 11:06:12 +02:00

11 lines
268 B
Text

--- xpath.c
+++ xpath.c
@@ -14529,7 +14529,7 @@
}
stream = xmlPatterncompile(str, dict, XML_PATTERN_XPATH,
- &namespaces[0]);
+ namespaces); // i.e., &namespaces[0] if namespaces != NULL
if (namespaces != NULL) {
xmlFree((xmlChar **)namespaces);
}