[compiler-rt] r192777 - [asan] Remove CallocOverflow32 test from asan_test.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Wed Oct 16 01:34:31 PDT 2013
Author: eugenis
Date: Wed Oct 16 03:34:31 2013
New Revision: 192777
URL: http://llvm.org/viewvc/llvm-project?rev=192777&view=rev
Log:
[asan] Remove CallocOverflow32 test from asan_test.
The same as with MSan, this test behavior depends on ASAN_OPTIONS, and we've
got a lit_test that covers this.
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=192777&r1=192776&r2=192777&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_test.cc Wed Oct 16 03:34:31 2013
@@ -111,17 +111,6 @@ TEST(AddressSanitizer, CallocTest) {
free(a);
}
-TEST(AddressSanitizer, CallocOverflow32) {
-#if SANITIZER_WORDSIZE == 32
- size_t kArraySize = 112;
- volatile size_t kArraySize2 = 43878406;
- void *p = 0;
- EXPECT_DEATH(p = calloc(kArraySize, kArraySize2),
- "allocator is terminating the process instead of returning 0");
- assert(!p);
-#endif
-}
-
TEST(AddressSanitizer, CallocReturnsZeroMem) {
size_t sizes[] = {16, 1000, 10000, 100000, 2100000};
for (size_t s = 0; s < sizeof(sizes)/sizeof(sizes[0]); s++) {
More information about the llvm-commits
mailing list