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

David CARLIER via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 11 12:13:30 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL350965: [Sanitizer] Disable getusershell interception for Android (authored by devnexen, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D56583?vs=181221&id=181350#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56583/new/

https://reviews.llvm.org/D56583

Files:
  compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
  compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/getusershell.cc


Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ compiler-rt/trunk/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_POSIX)
 
 #define SANITIZER_INTERCEPT_POPEN SI_POSIX
 #define SANITIZER_INTERCEPT_POPENVE SI_NETBSD
Index: compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/getusershell.cc
===================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/getusershell.cc
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/getusershell.cc
@@ -1,6 +1,6 @@
 // RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s
 
-// XFAIL: android
+// UNSUPPORTED: android
 
 #include <assert.h>
 #include <errno.h>


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


More information about the llvm-commits mailing list