Skip to content

Commit dacadf5

Browse files
committed
Disable ifunc resolvers under thread sanitizer as well
1 parent d3d85cb commit dacadf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_portability.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ static zend_always_inline double _zend_get_nan(void) /* {{{ */
523523

524524
/* Memory sanitizer is incompatible with ifunc resolvers. Even if the resolver
525525
* is marked as no_sanitize("memory") it will still be instrumented and crash. */
526-
#if __has_feature(memory_sanitizer)
526+
#if __has_feature(memory_sanitizer) || __has_feature(thread_sanitizer)
527527
# undef HAVE_FUNC_ATTRIBUTE_IFUNC
528528
#endif
529529

0 commit comments

Comments
 (0)