[PATCH] D56583: [Sanitizer] Disable getusershell interception for Android

David CARLIER via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 11 01:04:07 PST 2019


devnexen created this revision.
devnexen added a reviewer: vitalybuka.
devnexen created this object with visibility "All Users".
Herald added subscribers: Sanitizers, llvm-commits, kubamracek, srhines.

Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D56583

Files:
  lib/sanitizer_common/sanitizer_platform_interceptors.h
  test/sanitizer_common/TestCases/Posix/getusershell.cc


Index: test/sanitizer_common/TestCases/Posix/getusershell.cc
===================================================================
--- test/sanitizer_common/TestCases/Posix/getusershell.cc
+++ test/sanitizer_common/TestCases/Posix/getusershell.cc
@@ -1,4 +1,5 @@
 // RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s
+// UNSUPPORTED: android
 
 #include <assert.h>
 #include <errno.h>
Index: lib/sanitizer_common/sanitizer_platform_interceptors.h
===================================================================
--- lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -548,7 +548,7 @@
 #define SANITIZER_INTERCEPT_GETFSENT (SI_FREEBSD || SI_NETBSD || SI_MAC)
 #define SANITIZER_INTERCEPT_ARC4RANDOM (SI_FREEBSD || SI_NETBSD)
 #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
-#define SANITIZER_INTERCEPT_GETUSERSHELL SI_POSIX
+#define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
 
 #define SANITIZER_INTERCEPT_POPEN SI_POSIX
 #define SANITIZER_INTERCEPT_POPENVE SI_NETBSD


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56583.181221.patch
Type: text/x-patch
Size: 1063 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190111/589bffae/attachment.bin>


More information about the llvm-commits mailing list