summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/sanitizer_common/TestCases/Linux/mmap_write_exec.cpp
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2018-03-17 00:31:41 +0000
committerVitaly Buka <vitalybuka@google.com>2018-03-17 00:31:41 +0000
commitec6327bab8afb25f746504e3c2afe0f0bcff7f49 (patch)
treec1f6122b2933d9366358e0c8ae89812ed9a0e39f /compiler-rt/test/sanitizer_common/TestCases/Linux/mmap_write_exec.cpp
parent196a9fab820a1ed825aafefc23c9030b0cf66715 (diff)
downloadbcm5719-llvm-ec6327bab8afb25f746504e3c2afe0f0bcff7f49.tar.gz
bcm5719-llvm-ec6327bab8afb25f746504e3c2afe0f0bcff7f49.zip
Revert "Mmap interceptor new option, Write Exec runtime detector"
Breaks Android bot. This reverts commit r327747. llvm-svn: 327762
Diffstat (limited to 'compiler-rt/test/sanitizer_common/TestCases/Linux/mmap_write_exec.cpp')
-rw-r--r--compiler-rt/test/sanitizer_common/TestCases/Linux/mmap_write_exec.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/mmap_write_exec.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/mmap_write_exec.cpp
deleted file mode 100644
index 2758322c53e..00000000000
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/mmap_write_exec.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-// RUN: %clangxx %s -o %t
-// RUN: %env_tool_opts=detect_write_exec=1 %run %t 2>&1 | FileCheck %s
-// ubsan and lsan do not install mmap interceptors
-// UNSUPPORTED: ubsan, lsan
-
-#include <sys/mman.h>
-
-int main(int argc, char **argv) {
- char *p = (char *)mmap(0, 1024, PROT_READ | PROT_WRITE | PROT_EXEC,
- MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
- // CHECK: WARNING: {{.*}}Sanitizer: writable-executable page usage
-}
OpenPOWER on IntegriCloud