diff options
author | Kostya Serebryany <kcc@google.com> | 2014-08-29 01:16:18 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2014-08-29 01:16:18 +0000 |
commit | c148f7c3af2c814d7c678bc2106fda9c47332902 (patch) | |
tree | 80ebc411a638aa048e5c39aebccd3add10fc29b7 /compiler-rt/test/asan/TestCases | |
parent | b1cd51e33c0f035ff8fdb06968c7df9f57e7e325 (diff) | |
download | bcm5719-llvm-c148f7c3af2c814d7c678bc2106fda9c47332902.tar.gz bcm5719-llvm-c148f7c3af2c814d7c678bc2106fda9c47332902.zip |
[asan] enable poison_array_cookie back
llvm-svn: 216705
Diffstat (limited to 'compiler-rt/test/asan/TestCases')
-rw-r--r-- | compiler-rt/test/asan/TestCases/Linux/new_array_cookie_test.cc | 4 | ||||
-rw-r--r-- | compiler-rt/test/asan/TestCases/Linux/new_array_cookie_uaf_test.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/test/asan/TestCases/Linux/new_array_cookie_test.cc b/compiler-rt/test/asan/TestCases/Linux/new_array_cookie_test.cc index 49545f09355..eb0314cc152 100644 --- a/compiler-rt/test/asan/TestCases/Linux/new_array_cookie_test.cc +++ b/compiler-rt/test/asan/TestCases/Linux/new_array_cookie_test.cc @@ -1,8 +1,8 @@ // REQUIRES: asan-64-bits // RUN: %clangxx_asan -O3 %s -o %t -// RUN %run %t +// RUN: not %run %t 2>&1 | FileCheck %s // RUN: ASAN_OPTIONS=poison_array_cookie=1 not %run %t 2>&1 | FileCheck %s -// RUN: ASAN_OPTIONS=poison_array_cookie=0 %run %t +// RUN: ASAN_OPTIONS=poison_array_cookie=0 %run %t #include <stdio.h> struct C { int x; diff --git a/compiler-rt/test/asan/TestCases/Linux/new_array_cookie_uaf_test.cc b/compiler-rt/test/asan/TestCases/Linux/new_array_cookie_uaf_test.cc index 5d6379471c5..fee44217245 100644 --- a/compiler-rt/test/asan/TestCases/Linux/new_array_cookie_uaf_test.cc +++ b/compiler-rt/test/asan/TestCases/Linux/new_array_cookie_uaf_test.cc @@ -1,6 +1,6 @@ // REQUIRES: asan-64-bits // RUN: %clangxx_asan -O3 %s -o %t -// DISABLED: ASAN_OPTIONS=poison_array_cookie=1 not %run %t 2>&1 | FileCheck %s --check-prefix=COOKIE +// RUN: ASAN_OPTIONS=poison_array_cookie=1 not %run %t 2>&1 | FileCheck %s --check-prefix=COOKIE // RUN: ASAN_OPTIONS=poison_array_cookie=0 not %run %t 2>&1 | FileCheck %s --check-prefix=NO_COOKIE #include <stdio.h> #include <stdlib.h> |