diff options
| -rw-r--r-- | compiler-rt/lib/msan/tests/msan_test.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler-rt/lib/msan/tests/msan_test.cc b/compiler-rt/lib/msan/tests/msan_test.cc index 0e89fce953c..1ef769d0daf 100644 --- a/compiler-rt/lib/msan/tests/msan_test.cc +++ b/compiler-rt/lib/msan/tests/msan_test.cc @@ -2986,16 +2986,6 @@ NOINLINE void RecursiveMalloc(int depth) { delete x2; } -TEST(MemorySanitizer, CallocOverflow) { - size_t kArraySize = 4096; - volatile size_t kMaxSizeT = std::numeric_limits<size_t>::max(); - volatile size_t kArraySize2 = kMaxSizeT / kArraySize + 10; - void *p = 0; - EXPECT_DEATH(p = calloc(kArraySize, kArraySize2), - "llocator is terminating the process instead of returning 0"); - EXPECT_EQ(0L, Ident(p)); -} - TEST(MemorySanitizer, Select) { int x; int volatile* p = &x; |

