This is an archive of the discontinued LLVM Phabricator instance.

Fix `skipIfSanitized` decorator on macOS
ClosedPublic

Authored by JDevlieghere on Aug 1 2019, 11:04 AM.

Details

Summary

For security reasons, DYLD_INSERT_LIBRARIES is not propagated to a child process. This breaks the skipIfSanitized decorator, which checks for the environment variable being set. Instead, always set the ASAN_OPTIONS and make the decorator check for that.

Diff Detail

Repository
rL LLVM

Event Timeline

JDevlieghere created this revision.Aug 1 2019, 11:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 1 2019, 11:04 AM
Herald added a subscriber: teemperor. · View Herald Transcript
vsk accepted this revision.Aug 1 2019, 11:16 AM

Thanks, lgtm.

This revision is now accepted and ready to land.Aug 1 2019, 11:16 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 1 2019, 11:36 AM