diff options
| author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2019-02-21 21:55:06 +0000 |
|---|---|---|
| committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2019-02-21 21:55:06 +0000 |
| commit | b5321d7d0b57d2d6b03d241ff4a918c511f1c53b (patch) | |
| tree | 2333a8382e31abef48575faf438445ac0d58b75e /compiler-rt/test | |
| parent | 50ac8459ec401c79b361fdb67288075c7409c8e7 (diff) | |
| download | bcm5719-llvm-b5321d7d0b57d2d6b03d241ff4a918c511f1c53b.tar.gz bcm5719-llvm-b5321d7d0b57d2d6b03d241ff4a918c511f1c53b.zip | |
[asan] Fix vfork handling.
__asan_handle_vfork was unpoisoning the wrong part of the stack.
Adjust the test to catch this reliably (current failure is
non-deterministic).
llvm-svn: 354627
Diffstat (limited to 'compiler-rt/test')
| -rw-r--r-- | compiler-rt/test/asan/TestCases/Linux/vfork.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/asan/TestCases/Linux/vfork.cc b/compiler-rt/test/asan/TestCases/Linux/vfork.cc index 6e52fbbaa7f..b366c1e06ca 100644 --- a/compiler-rt/test/asan/TestCases/Linux/vfork.cc +++ b/compiler-rt/test/asan/TestCases/Linux/vfork.cc @@ -11,13 +11,13 @@ #include <sanitizer/asan_interface.h> __attribute__((noinline, no_sanitize("address"))) void child() { - char x[10000]; + alignas(8) char x[100000]; __asan_poison_memory_region(x, sizeof(x)); _exit(0); } __attribute__((noinline, no_sanitize("address"))) void parent() { - char x[10000]; + alignas(8) char x[100000]; assert(__asan_address_is_poisoned(x + 5000) == 0); } |

