1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-19 14:50:07 +03:00

Allow FP division by zero in xmlXPathInit

This commit is contained in:
Nick Wellnhofer 2021-03-16 10:36:04 +01:00
parent d25460da14
commit 868e49cffd

View File

@ -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. */