This is an archive of the discontinued LLVM Phabricator instance.

[Sanitizers] Scudo allocator set errno on failure.
ClosedPublic

Authored by alekseyshl on Jul 14 2017, 11:48 AM.

Details

Summary

Set proper errno code on alloction failure and change pvalloc and
posix_memalign implementation to satisfy their man-specified
requirements.

Diff Detail

Repository
rL LLVM

Event Timeline

alekseyshl created this revision.Jul 14 2017, 11:48 AM
cryptoad accepted this revision.Jul 14 2017, 12:08 PM

Thanks for changing the function name! Couple of small comments included.

lib/scudo/scudo_allocator.cpp
641 ↗(On Diff #106681)

s/inline/INLINE/ for consistency maybe.
Also s/ptr/Ptr (LLVM casing scheme requires uppercase param).

697 ↗(On Diff #106681)

s/ptr/Ptr/ as well.

This revision is now accepted and ready to land.Jul 14 2017, 12:08 PM
alekseyshl marked 2 inline comments as done.
  • Address comments
This revision was automatically updated to reflect the committed changes.