This is an archive of the discontinued LLVM Phabricator instance.

[hwasan] Provide __sanitizer_* aliases to allocator functions.
ClosedPublic

Authored by eugenis on Aug 10 2018, 10:16 AM.

Details

Summary

Export __sanitizer_malloc, etc as aliases to malloc, etc.
This way users can wrap sanitizer malloc, even in fully static binaries.

Both jemalloc and tcmalloc provide similar aliases (je_* and tc_*).

Diff Detail

Repository
rL LLVM

Event Timeline

eugenis created this revision.Aug 10 2018, 10:16 AM
vitalybuka accepted this revision.Aug 10 2018, 10:54 AM
This revision is now accepted and ready to land.Aug 10 2018, 10:54 AM
This revision was automatically updated to reflect the committed changes.