]> granicus.if.org Git - php/commitdiff
Disable ifunc resolvers under dataflow sanitizer
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 1 Sep 2020 18:35:33 +0000 (20:35 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 1 Sep 2020 18:37:43 +0000 (20:37 +0200)
As with other sanitizers, this is not supported.

Zend/zend_portability.h

index b94ed7b55f98259595bd5f464531f39a62bd7441..e94560d18f0ce2570978b959e8bde2948f323157 100644 (file)
@@ -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