tsan: return 0 on malloc() failure instead of crashing
commit7423c7821ff30043def78c6cbb257bd2f4d9eef6
authorDmitry Vyukov <dvyukov@google.com>
Fri, 22 Mar 2013 17:06:22 +0000 (22 17:06 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Fri, 22 Mar 2013 17:06:22 +0000 (22 17:06 +0000)
tree02dff8b83ceea34e896ad58e28292a6619e1488c
parent6c503b9c7b0ad08fba74dbed309447d75de9a157
tsan: return 0 on malloc() failure instead of crashing

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177741 91177308-0d34-0410-b5e6-96231b3b80d8
lib/tsan/lit_tests/malloc_overflow.cc [new file with mode: 0644]
lib/tsan/rtl/tsan_interceptors.cc
lib/tsan/rtl/tsan_mman.cc