[PATCH] D66391: [Sanitizer] arc4random interception on Mac
David CARLIER via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 18 03:38:54 PDT 2019
devnexen created this revision.
devnexen added reviewers: yln, vitalybuka.
devnexen created this object with visibility "All Users".
Herald added subscribers: llvm-commits, Sanitizers, fedor.sergeev.
Herald added projects: LLVM, Sanitizers.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D66391
Files:
compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
compiler-rt/test/sanitizer_common/TestCases/Posix/arc4random.cpp
Index: compiler-rt/test/sanitizer_common/TestCases/Posix/arc4random.cpp
===================================================================
--- compiler-rt/test/sanitizer_common/TestCases/Posix/arc4random.cpp
+++ compiler-rt/test/sanitizer_common/TestCases/Posix/arc4random.cpp
@@ -1,6 +1,6 @@
// RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s
//
-// UNSUPPORTED: linux, darwin, solaris
+// UNSUPPORTED: linux, solaris
#include <cstdlib>
#include <ctime>
Index: compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -561,7 +561,7 @@
#define SANITIZER_INTERCEPT_FUNOPEN (SI_NETBSD || SI_FREEBSD)
#define SANITIZER_INTERCEPT_FUNOPEN2 SI_NETBSD
#define SANITIZER_INTERCEPT_GETFSENT (SI_FREEBSD || SI_NETBSD || SI_MAC)
-#define SANITIZER_INTERCEPT_ARC4RANDOM (SI_FREEBSD || SI_NETBSD)
+#define SANITIZER_INTERCEPT_ARC4RANDOM (SI_FREEBSD || SI_NETBSD || SI_MAC)
#define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
#define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
#define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66391.215774.patch
Type: text/x-patch
Size: 1286 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190818/8e8d784c/attachment.bin>
More information about the llvm-commits
mailing list