This is an archive of the discontinued LLVM Phabricator instance.

[LSAN] Add GetUserAddr function which returns the user visible address of an internal pointer
ClosedPublic

Authored by kstoimenov on Feb 1 2023, 4:30 PM.

Details

Summary

For HWASAN this would be the tagged address. It is the same pointer when pointer tagging is not used. Coincidently this also fixes some test which rely on comparing pointers.

Diff Detail

Event Timeline

kstoimenov created this revision.Feb 1 2023, 4:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 1 2023, 4:30 PM
Herald added a subscriber: Enna1. · View Herald Transcript
kstoimenov requested review of this revision.Feb 1 2023, 4:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 1 2023, 4:30 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
kstoimenov updated this revision to Diff 494111.Feb 1 2023, 4:31 PM

Fixed typo.

kstoimenov updated this revision to Diff 494112.Feb 1 2023, 4:32 PM

Removed some debug comments.

vitalybuka accepted this revision.Feb 1 2023, 4:34 PM
This revision is now accepted and ready to land.Feb 1 2023, 4:34 PM
This revision was landed with ongoing or failed builds.Feb 1 2023, 4:39 PM
This revision was automatically updated to reflect the committed changes.