Skip to content

Commit

Permalink
Disable ifunc resolvers under dataflow sanitizer
Browse files Browse the repository at this point in the history
As with other sanitizers, this is not supported.
  • Loading branch information
nikic committed Sep 1, 2020
1 parent c6ea0e9 commit a868780
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Zend/zend_portability.h
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@ extern "C++" {

/* 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) || __has_feature(thread_sanitizer)
#if __has_feature(memory_sanitizer) || __has_feature(thread_sanitizer) || \
__has_feature(dataflow_sanitizer)
# undef HAVE_FUNC_ATTRIBUTE_IFUNC
#endif

Expand Down

0 comments on commit a868780

Please sign in to comment.