[compiler-rt] r345666 - Disable BufferOverflowAfterManyFrees for NetBSD

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 30 15:08:47 PDT 2018


Author: kamil
Date: Tue Oct 30 15:08:47 2018
New Revision: 345666

URL: http://llvm.org/viewvc/llvm-project?rev=345666&view=rev
Log:
Disable BufferOverflowAfterManyFrees for NetBSD

This test hangs in the i386 mode.

Modified:
    compiler-rt/trunk/lib/asan/tests/asan_test.cc

Modified: compiler-rt/trunk/lib/asan/tests/asan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/asan_test.cc?rev=345666&r1=345665&r2=345666&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_test.cc Tue Oct 30 15:08:47 2018
@@ -1295,6 +1295,7 @@ TEST(AddressSanitizer, DISABLED_DemoTooM
   }
 }
 
+#if !defined(__NetBSD__) && !defined(__i386__)
 // https://github.com/google/sanitizers/issues/66
 TEST(AddressSanitizer, BufferOverflowAfterManyFrees) {
   for (int i = 0; i < 1000000; i++) {
@@ -1304,6 +1305,7 @@ TEST(AddressSanitizer, BufferOverflowAft
   EXPECT_DEATH(x[Ident(8192)] = 0, "AddressSanitizer: heap-buffer-overflow");
   delete [] Ident(x);
 }
+#endif
 
 
 // Test that instrumentation of stack allocations takes into account




More information about the llvm-commits mailing list