This is an archive of the discontinued LLVM Phabricator instance.

[hwasan] Provide aliases for c allocation functions for Fuchsia
ClosedPublic

Authored by leonardchan on Mar 9 2023, 12:27 PM.

Details

Summary

"Interceptors" in this file aren't like the traditional interceptors used by other sanitizers like asan. They're simply aliases to the equivalent __sanitizer_* functions.

This also removes the WRAP(FN) declaration since it just creates declarations for __interceptor_* functions but they seem to be unused.

Diff Detail

Event Timeline

leonardchan created this revision.Mar 9 2023, 12:27 PM
leonardchan requested review of this revision.Mar 9 2023, 12:27 PM
Herald added a subscriber: Restricted Project. · View Herald TranscriptMar 9 2023, 12:27 PM
vitalybuka accepted this revision.Mar 10 2023, 9:28 AM
This revision is now accepted and ready to land.Mar 10 2023, 9:28 AM
This revision was landed with ongoing or failed builds.Mar 10 2023, 4:32 PM
This revision was automatically updated to reflect the committed changes.
vitalybuka reopened this revision.Mar 10 2023, 9:18 PM
This revision is now accepted and ready to land.Mar 10 2023, 9:18 PM

Sorry about that and thanks for the revert.

Those tests were failing from missing definitions of sanitizer_mallopt and sanitizer_mallinfo which my change removed so looks like we'll need to unconditionally define them and __sanitizer_struct_mallinfo for fuchsia also.