[asan] make calloc crash instead of returning 0 on overflow (controlled by the alloca...
commit48b7ee943e01a206600b0189e6b2b0125c4dd1d1
authorKostya Serebryany <kcc@google.com>
Fri, 6 Sep 2013 09:51:50 +0000 (6 09:51 +0000)
committerKostya Serebryany <kcc@google.com>
Fri, 6 Sep 2013 09:51:50 +0000 (6 09:51 +0000)
treeda829c0776141d801fef9dbc507f06354fe71c0a
parent9150f397ba4c5478275d72665ea3e53a84c7076a
[asan] make calloc crash instead of returning 0 on overflow (controlled by the allocator_may_return_null flag)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190128 91177308-0d34-0410-b5e6-96231b3b80d8
lib/asan/asan_allocator2.cc
lib/asan/lit_tests/TestCases/allocator_returns_null.cc
lib/asan/tests/asan_noinst_test.cc