This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Move the errno/ENOMEM allocator checks logic to separate .cc
ClosedPublic

Authored by cryptoad on Oct 10 2017, 10:03 AM.

Details

Summary

This is a new attempt at D38706, which had 2 issues.

The first one was that it broke TSan, because sanitizer_errno.h was not
directly included in tsan_mman.cc. This fixes the include.

The second one was that it broke the nolibc build, because __errno_location
couldn't be found. This adds the new .cc to the libcdep list instead of the
base one.

Event Timeline

cryptoad created this revision.Oct 10 2017, 10:03 AM
alekseyshl accepted this revision.Oct 11 2017, 1:01 PM
This revision is now accepted and ready to land.Oct 11 2017, 1:01 PM
cryptoad closed this revision.Oct 11 2017, 2:20 PM