[compiler-rt] [compiler-rt][rtsan] intercept accept4 syscall. (PR #117278)

Chris Apple via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 4 16:43:12 PST 2024


================
@@ -840,6 +848,9 @@ void __rtsan::InitializeInterceptors() {
   INTERCEPT_FUNCTION(sendto);
   INTERCEPT_FUNCTION(shutdown);
   INTERCEPT_FUNCTION(socket);
+#if SANITIZER_INTERCEPT_ACCEPT4
+  INTERCEPT_FUNCTION(accept4);
+#endif
----------------
cjappl wrote:

Please use the MAYBE syntax you see to conditionally include this here. 

https://github.com/llvm/llvm-project/pull/117278


More information about the llvm-commits mailing list