com php-src: Disable ifunc resolvers under thread sanitizer as well: Zend/zend_portability.h
| From: | Nikita Popov | Date: | Thu, 07 Nov 2019 12:08:03 +0000 |
| Subject: | com php-src: Disable ifunc resolvers under thread sanitizer as well: Zend/zend_portability.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-109207@lists.php.net to get a copy of this message | ||
Commit: dacadf5aa36cc8e90accc05eb5d8a8d9fe231db2
Author: Nikita Popov <nikita.ppv@gmail.com> Thu, 7 Nov 2019 13:08:03 +0100
Parents: d3d85cbcc189f3e2322f656534d093e263b80e2e
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=dacadf5aa36cc8e90accc05eb5d8a8d9fe231db2
Log:
Disable ifunc resolvers under thread sanitizer as well
Changed paths:
M Zend/zend_portability.h
Diff:
diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h
index 1e549d300be..dd518aebbb3 100644
--- a/Zend/zend_portability.h
+++ b/Zend/zend_portability.h
@@ -523,7 +523,7 @@ static zend_always_inline double _zend_get_nan(void) /* {{{ */
/* Memory sanitizer is incompatible with ifunc resolvers. Even if the resolver
* is marked as no_sanitize("memory") it will still be instrumented and crash. */
-#if __has_feature(memory_sanitizer)
+#if __has_feature(memory_sanitizer) || __has_feature(thread_sanitizer)
# undef HAVE_FUNC_ATTRIBUTE_IFUNC
#endif