[PATCH] D34731: [Sanitizers] Operator new() interceptors always die on allocation error
Aleksey Shlyapnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 28 12:11:14 PDT 2017
alekseyshl updated this revision to Diff 104487.
alekseyshl added a comment.
- Add UNLIKELY around OOM checks and add NORETURN to DieOnFailure methods.
https://reviews.llvm.org/D34731
Files:
lib/asan/asan_allocator.cc
lib/asan/asan_new_delete.cc
lib/lsan/lsan_interceptors.cc
lib/msan/msan_new_delete.cc
lib/sanitizer_common/sanitizer_allocator.cc
lib/sanitizer_common/sanitizer_allocator.h
lib/scudo/scudo_new_delete.cpp
lib/tsan/rtl/tsan_new_delete.cc
test/asan/TestCases/allocator_returns_null.cc
test/msan/allocator_returns_null.cc
test/scudo/sizes.cpp
test/tsan/allocator_returns_null.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34731.104487.patch
Type: text/x-patch
Size: 35418 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170628/8777d4ce/attachment.bin>
More information about the llvm-commits
mailing list