[PATCH] Add FreeBSD support to the address sanitizer's deep_stack_uaf.cc test case

Viktor Kutuzov vkutuzov at accesssoftek.com
Fri Aug 1 12:46:10 PDT 2014


Closed by commit rL214544 (authored by vkutuzov).

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D4668

Files:
  compiler-rt/trunk/test/asan/TestCases/deep_stack_uaf.cc

Index: compiler-rt/trunk/test/asan/TestCases/deep_stack_uaf.cc
===================================================================
--- compiler-rt/trunk/test/asan/TestCases/deep_stack_uaf.cc
+++ compiler-rt/trunk/test/asan/TestCases/deep_stack_uaf.cc
@@ -26,7 +26,10 @@
   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>}}
 }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4668.12118.patch
Type: text/x-patch
Size: 808 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140801/5be02609/attachment.bin>


More information about the llvm-commits mailing list