summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2021-03-16 10:36:04 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2021-03-16 10:36:04 +0100
commit868e49cffdbfddeab0d1c391e0ce7f4f98ea59a1 (patch)
tree088bc7f83186952e75244ed426fe703d4286b7b1
parentd25460da14cd31ab807c77580da5a8efcacae97b (diff)
downloadlibxml2-868e49cffdbfddeab0d1c391e0ce7f4f98ea59a1.tar.gz
Allow FP division by zero in xmlXPathInit
-rw-r--r--xpath.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xpath.c b/xpath.c
index 4b72cff5..7497ba07 100644
--- a/xpath.c
+++ b/xpath.c
@@ -497,6 +497,7 @@ double xmlXPathNINF;
*
* Initialize the XPath environment
*/
+ATTRIBUTE_NO_SANITIZE("float-divide-by-zero")
void
xmlXPathInit(void) {
/* MSVC doesn't allow division by zero in constant expressions. */