Skip to content

Commit 05d7929

Browse files
committed
[Sanitizers] Disable sysmsg interceptors on Android
1 parent ddcf063 commit 05d7929

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
#define SANITIZER_INTERCEPT_SENDMSG SI_POSIX
271271
#define SANITIZER_INTERCEPT_RECVMMSG SI_LINUX
272272
#define SANITIZER_INTERCEPT_SENDMMSG SI_LINUX
273-
#define SANITIZER_INTERCEPT_SYSMSG SI_LINUX
273+
#define SANITIZER_INTERCEPT_SYSMSG SI_LINUX_NOT_ANDROID
274274
#define SANITIZER_INTERCEPT_GETPEERNAME SI_POSIX
275275
#define SANITIZER_INTERCEPT_IOCTL SI_POSIX
276276
#define SANITIZER_INTERCEPT_INET_ATON SI_POSIX

compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang -O1 %s -o %t && %run %t
2+
// UNSUPPORTED: android
23
#include <assert.h>
34
#include <errno.h>
45
#include <stdio.h>

0 commit comments

Comments
 (0)