[llvm-commits] [compiler-rt] r167610 - in /compiler-rt/trunk/lib/asan/lit_tests: strncpy-overflow.cc use-after-free.cc
Alexander Potapenko
glider at google.com
Fri Nov 9 03:55:33 PST 2012
Author: glider
Date: Fri Nov 9 05:55:33 2012
New Revision: 167610
URL: http://llvm.org/viewvc/llvm-project?rev=167610&view=rev
Log:
Add a possible underscore before the wrappers to the output expectations for Darwin
Modified:
compiler-rt/trunk/lib/asan/lit_tests/strncpy-overflow.cc
compiler-rt/trunk/lib/asan/lit_tests/use-after-free.cc
Modified: compiler-rt/trunk/lib/asan/lit_tests/strncpy-overflow.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/strncpy-overflow.cc?rev=167610&r1=167609&r2=167610&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/strncpy-overflow.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/strncpy-overflow.cc Fri Nov 9 05:55:33 2012
@@ -24,7 +24,7 @@
strncpy(short_buffer, hello, 10); // BOOM
// CHECK: {{WRITE of size 1 at 0x.* thread T0}}
// CHECK-Linux: {{ #0 0x.* in .*strncpy}}
- // CHECK-Darwin: {{ #0 0x.* in wrap_strncpy}}
+ // CHECK-Darwin: {{ #0 0x.* in _?wrap_strncpy}}
// CHECK: {{ #1 0x.* in _?main .*strncpy-overflow.cc:24}}
// CHECK: {{0x.* is located 0 bytes to the right of 9-byte region}}
// CHECK: {{allocated by thread T0 here:}}
Modified: compiler-rt/trunk/lib/asan/lit_tests/use-after-free.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/use-after-free.cc?rev=167610&r1=167609&r2=167610&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/use-after-free.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/use-after-free.cc Fri Nov 9 05:55:33 2012
@@ -32,7 +32,7 @@
// CHECK-Darwin: {{ #0 0x.* in .*mz_free.*}}
// We override free() on Darwin, thus no malloc_zone_free
- // CHECK-Darwin: {{ #1 0x.* in wrap_free}}
+ // CHECK-Darwin: {{ #1 0x.* in _?wrap_free}}
// CHECK-Darwin: {{ #2 0x.* in _?main .*use-after-free.cc:21}}
// CHECK: {{previously allocated by thread T0 here:}}
More information about the llvm-commits
mailing list