This is an archive of the discontinued LLVM Phabricator instance.

sanitizer_common: expose max_address from LoadedModule
ClosedPublic

Authored by dvyukov on Apr 1 2022, 7:38 AM.

Details

Summary

Currently LoadedModule provides max_executable_address.
Replace it with just max_address.
It's only used for printing for human inspection and since
modules are non-overlapping, max_address is as good as max_executable_address
for matching addresses/PCs against modules (I assume it's used for that).
On the hand, max_address is more general and can used to match e.g. data addresses.
I want to use it for that purpose in future changes.

Diff Detail

Event Timeline

dvyukov created this revision.Apr 1 2022, 7:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 1 2022, 7:38 AM
dvyukov requested review of this revision.Apr 1 2022, 7:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 1 2022, 7:38 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Apr 1 2022, 8:03 AM
This revision is now accepted and ready to land.Apr 1 2022, 8:03 AM
This revision was automatically updated to reflect the committed changes.