[PATCH] D35275: [Sanitizers] ASan/MSan/LSan allocators set errno on failure.
Aleksey Shlyapnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 13:46:02 PDT 2017
alekseyshl created this revision.
Herald added a subscriber: kubamracek.
ASan/MSan/LSan allocators set errno on allocation failures according to
malloc/calloc/etc. expected behavior.
MSan allocator was refactored a bit to make its structure more similar
with other allocators.
Also switch Scudo allocator to the internal errno definitions.
TSan allocator changes will follow.
https://reviews.llvm.org/D35275
Files:
lib/asan/asan_allocator.cc
lib/asan/tests/asan_test.cc
lib/lsan/lsan_allocator.cc
lib/msan/msan.h
lib/msan/msan_allocator.cc
lib/msan/msan_interceptors.cc
lib/msan/msan_new_delete.cc
lib/scudo/scudo_allocator.cpp
test/asan/TestCases/allocator_returns_null.cc
test/lsan/TestCases/allocator_returns_null.cc
test/msan/allocator_returns_null.cc
test/scudo/memalign.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35275.106093.patch
Type: text/x-patch
Size: 25228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170711/13c144b8/attachment.bin>
More information about the llvm-commits
mailing list