[compiler-rt] r223230 - [asan] Fix stale_stack_leak.cc test in ASan-UAR mode.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Wed Dec 3 05:35:41 PST 2014
Author: eugenis
Date: Wed Dec 3 07:35:41 2014
New Revision: 223230
URL: http://llvm.org/viewvc/llvm-project?rev=223230&view=rev
Log:
[asan] Fix stale_stack_leak.cc test in ASan-UAR mode.
This test does an intentional use-after-return, but this is not the focus of
the test, so ignore it.
Modified:
compiler-rt/trunk/test/lsan/TestCases/stale_stack_leak.cc
Modified: compiler-rt/trunk/test/lsan/TestCases/stale_stack_leak.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lsan/TestCases/stale_stack_leak.cc?rev=223230&r1=223229&r2=223230&view=diff
==============================================================================
--- compiler-rt/trunk/test/lsan/TestCases/stale_stack_leak.cc (original)
+++ compiler-rt/trunk/test/lsan/TestCases/stale_stack_leak.cc Wed Dec 3 07:35:41 2014
@@ -31,6 +31,7 @@ int main() {
// it had a chance to see it. If LSan is invoked with atexit(), this works.
// Otherwise, we need a different method.
__attribute__((destructor))
+__attribute__((no_sanitize_address))
void ConfirmPointerHasSurvived() {
fprintf(stderr, "Value after LSan: %p.\n", *pp);
}
More information about the llvm-commits
mailing list