[PATCH] D34786: [LSan] Make LSan allocator allocator_may_return_null compliant

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 28 16:10:40 PDT 2017


alekseyshl created this revision.

LSan allocator used to always return nullptr on too big allocation requests
(the definition of "too big" depends on platform and bitness), now it
follows policy configured by allocator_may_return_null flag.


https://reviews.llvm.org/D34786

Files:
  lib/lsan/lsan_allocator.cc
  lib/lsan/lsan_interceptors.cc
  test/lsan/TestCases/allocator_returns_null.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34786.104538.patch
Type: text/x-patch
Size: 6995 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170628/e658ebbb/attachment.bin>


More information about the llvm-commits mailing list