mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Disable float division by zero sanitizer for div_function
We intentionally divide by zero here and want to get IEEE-754 semantics.
This commit is contained in:
parent
eaafb69eea
commit
a59e0cfce5
1 changed files with 3 additions and 0 deletions
|
@ -1263,6 +1263,9 @@ ZEND_API int ZEND_FASTCALL pow_function(zval *result, zval *op1, zval *op2) /* {
|
|||
}
|
||||
/* }}} */
|
||||
|
||||
#ifdef __clang__
|
||||
__attribute__((no_sanitize("float-divide-by-zero")))
|
||||
#endif
|
||||
ZEND_API int ZEND_FASTCALL div_function(zval *result, zval *op1, zval *op2) /* {{{ */
|
||||
{
|
||||
zval op1_copy, op2_copy;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue