diff options
author | Nico Weber <nicolasweber@gmx.de> | 2016-06-14 12:39:22 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2016-06-14 12:39:22 +0000 |
commit | 2c9ed7538ad6463aa52a68b22545abf473e29c0a (patch) | |
tree | b85b137b49b5a969201a29868e71cd124e6c4b47 /test/esan | |
parent | 2a8f0a92c347dbc714cab40a5c61cf336fa0be18 (diff) |
Revert r272591, http://lab.llvm.org:8011/builders/clang-x64-ninja-win7 has been broken since this landed.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@272659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/esan')
-rw-r--r-- | test/esan/TestCases/workingset-early-fault.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/test/esan/TestCases/workingset-early-fault.c b/test/esan/TestCases/workingset-early-fault.c deleted file mode 100644 index 1c420c368..000000000 --- a/test/esan/TestCases/workingset-early-fault.c +++ /dev/null @@ -1,33 +0,0 @@ -// Test shadow faults during esan initialization as well as -// faults during dlsym's calloc during interceptor init. -// -// RUN: %clang_esan_wset %s -o %t -// RUN: %run %t 2>&1 | FileCheck %s - -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - -// Our goal is to emulate an instrumented allocator, whose calloc -// invoked from dlsym will trigger shadow faults, to test an -// early shadow fault during esan interceptor init. -// We do this by replacing calloc: -void *calloc(size_t size, size_t n) { - // Unfortunately we can't print anything to make the test - // ensure we got here b/c the sanitizer interceptors can't - // handle that during interceptor init. - - // Ensure we trigger a shadow write fault: - int x[16]; - x[0] = size; - // Now just emulate calloc. - void *res = malloc(size*n); - memset(res, 0, size*n); - return res; -} - -int main(int argc, char **argv) { - printf("all done\n"); - return 0; -} -// CHECK: all done |