com php-src: Disable float division by zero sanitizer for div_function: Zend/zend_operators.c

From: Date: Thu, 20 Jun 2019 14:21:47 +0000
Subject: com php-src: Disable float division by zero sanitizer for div_function: Zend/zend_operators.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106955@lists.php.net to get a copy of this message
Commit: a59e0cfce528669642f8199410b267146a30b714 Author: Nikita Popov <nikita.ppv@gmail.com> Thu, 20 Jun 2019 12:11:30 +0200 Parents: eaafb69eea9dba06ee542383a746d3668fa072cf Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a59e0cfce528669642f8199410b267146a30b714 Log: Disable float division by zero sanitizer for div_function We intentionally divide by zero here and want to get IEEE-754 semantics. Changed paths: M Zend/zend_operators.c Diff: diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 14019a5..f6ecd42 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -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;

« previous php.cvs (#106955) next »