[PATCH] D35440: [Sanitizers] ASan and LSan allocator set errno on failure.
Aleksey Shlyapnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 14 15:08:09 PDT 2017
alekseyshl created this revision.
Herald added a subscriber: kubamracek.
Set proper errno code on alloction failures and change some
implementations to satisfy their man-specified requirements:
LSan: valloc and memalign
ASan: pvalloc, memalign and posix_memalign
Changing both allocators in one patch since LSan depends on ASan allocator in some configurations.
https://reviews.llvm.org/D35440
Files:
lib/asan/asan_allocator.cc
lib/asan/tests/asan_test.cc
lib/lsan/lsan_allocator.cc
test/asan/TestCases/allocator_returns_null.cc
test/lsan/TestCases/allocator_returns_null.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35440.106718.patch
Type: text/x-patch
Size: 10036 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170714/959a5b1d/attachment.bin>
More information about the llvm-commits
mailing list