[compiler-rt] dc08cfa - [Sanitizers] intercept accept4 on freebsd
David Carlier via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 13 13:16:49 PDT 2021
Author: David Carlier
Date: 2021-09-13T21:15:07+01:00
New Revision: dc08cfae091df6fdd625ebb2c5b047b3c96000d8
URL: https://github.com/llvm/llvm-project/commit/dc08cfae091df6fdd625ebb2c5b047b3c96000d8
DIFF: https://github.com/llvm/llvm-project/commit/dc08cfae091df6fdd625ebb2c5b047b3c96000d8.diff
LOG: [Sanitizers] intercept accept4 on freebsd
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
index ba70cd9b5bde0..eca20a91f264d 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -252,7 +252,8 @@
#define SANITIZER_INTERCEPT_GETHOSTENT_R (SI_FREEBSD || SI_GLIBC || SI_SOLARIS)
#define SANITIZER_INTERCEPT_GETSOCKOPT SI_POSIX
#define SANITIZER_INTERCEPT_ACCEPT SI_POSIX
-#define SANITIZER_INTERCEPT_ACCEPT4 (SI_LINUX_NOT_ANDROID || SI_NETBSD)
+#define SANITIZER_INTERCEPT_ACCEPT4 \
+ (SI_LINUX_NOT_ANDROID || SI_NETBSD || SI_FREEBSD)
#define SANITIZER_INTERCEPT_PACCEPT SI_NETBSD
#define SANITIZER_INTERCEPT_MODF SI_POSIX
#define SANITIZER_INTERCEPT_RECVMSG SI_POSIX
More information about the llvm-commits
mailing list