[llvm-commits] [compiler-rt] r155127 - /compiler-rt/trunk/lib/asan/tests/asan_test.cc
Kostya Serebryany
kcc at google.com
Thu Apr 19 07:53:51 PDT 2012
Author: kcc
Date: Thu Apr 19 09:53:51 2012
New Revision: 155127
URL: http://llvm.org/viewvc/llvm-project?rev=155127&view=rev
Log:
[asan] test for issue #66
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=155127&r1=155126&r2=155127&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_test.cc Thu Apr 19 09:53:51 2012
@@ -1834,6 +1834,16 @@
}
}
+// http://code.google.com/p/address-sanitizer/issues/detail?id=66
+TEST(AddressSanitizer, DISABLED_BufferOverflowAfterManyFrees) {
+ for (int i = 0; i < 1000000; i++) {
+ delete [] (Ident(new char [8644]));
+ }
+ char *x = new char[8192];
+ x[Ident(8192)] = 0;
+ delete [] Ident(x);
+}
+
#ifdef __APPLE__
#include "asan_mac_test.h"
// TODO(glider): figure out whether we still need these tests. Is it correct
More information about the llvm-commits
mailing list