[libxml2] Allow FP division by zero in xmlXPathInit



commit 868e49cffdbfddeab0d1c391e0ce7f4f98ea59a1
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Tue Mar 16 10:36:04 2021 +0100

    Allow FP division by zero in xmlXPathInit

 xpath.c | 1 +
 1 file changed, 1 insertion(+)
---
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. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]