This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt][asan] Add report on intercept fail to more places
ClosedPublic

Authored by alvinhochun on Apr 22 2023, 6:25 AM.

Details

Summary

Use ASAN_INTERCEPT_FUNC instead of INTERCEPT_FUNCTION so it checks
the return value and reports a message if verbosity >= 1.

Diff Detail

Event Timeline

alvinhochun created this revision.Apr 22 2023, 6:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 22 2023, 6:25 AM
Herald added subscribers: Enna1, dberris. · View Herald Transcript
alvinhochun requested review of this revision.Apr 22 2023, 6:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 22 2023, 6:25 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
mstorsjo accepted this revision.Apr 22 2023, 7:51 AM

LGTM, this looks straightforward. (I wonder why these functions were set up differently? Probably some later change which hasn’t been applied consistently, I guess.)

This revision is now accepted and ready to land.Apr 22 2023, 7:51 AM
This revision was landed with ongoing or failed builds.Apr 25 2023, 4:26 AM
This revision was automatically updated to reflect the committed changes.