This is an archive of the discontinued LLVM Phabricator instance.

[Sanitizers] ASan and LSan allocator set errno on failure.
ClosedPublic

Authored by alekseyshl on Jul 14 2017, 3:08 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

alekseyshl created this revision.Jul 14 2017, 3:08 PM
vitalybuka accepted this revision.Jul 14 2017, 3:13 PM
This revision is now accepted and ready to land.Jul 14 2017, 3:13 PM
This revision was automatically updated to reflect the committed changes.