[compiler-rt] r214544 - Add FreeBSD support to the address sanitizer's deep_stack_uaf.cc test case
Viktor Kutuzov
vkutuzov at accesssoftek.com
Fri Aug 1 12:37:05 PDT 2014
Author: vkutuzov
Date: Fri Aug 1 14:37:05 2014
New Revision: 214544
URL: http://llvm.org/viewvc/llvm-project?rev=214544&view=rev
Log:
Add FreeBSD support to the address sanitizer's deep_stack_uaf.cc test case
Differential Revision: http://reviews.llvm.org/D4668
Modified:
compiler-rt/trunk/test/asan/TestCases/deep_stack_uaf.cc
Modified: compiler-rt/trunk/test/asan/TestCases/deep_stack_uaf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/deep_stack_uaf.cc?rev=214544&r1=214543&r2=214544&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/deep_stack_uaf.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/deep_stack_uaf.cc Fri Aug 1 14:37:05 2014
@@ -26,7 +26,10 @@ int main() {
DeepFree<200>::free(x);
return x[5];
// CHECK: {{.*ERROR: AddressSanitizer: heap-use-after-free on address}}
- // CHECK: DeepFree<36>
- // CHECK: DeepFree<98>
- // CHECK: DeepFree<115>
+ // The libcxxrt demangling procedure on FreeBSD 9.2 incorrectly appends
+ // extra 'E' characters to the end of template arguments; see:
+ // https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192115
+ // CHECK: {{DeepFree<36>|DeepFree<36E>}}
+ // CHECK: {{DeepFree<98>|DeepFree<98E>}}
+ // CHECK: {{DeepFree<115>|DeepFree<115E>}}
}
More information about the llvm-commits
mailing list