This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Minor refactor of some ReservedAddressRange functions
ClosedPublic

Authored by cryptoad on Apr 18 2018, 9:10 AM.

Details

Summary

Some of the functions had spurious conditional statements and checks, and some
intermediary variables that I feel made the code more complicated than it needs
to be. Also, when unmapping the whole range, the range size would be 0, but
the base was set to the address of the end of the range, which sounds prone to
error. I think nulling out the base in this scenario is a better way to go.

Diff Detail

Event Timeline

cryptoad created this revision.Apr 18 2018, 9:10 AM
Herald added subscribers: Restricted Project, delcypher, kubamracek. · View Herald TranscriptApr 18 2018, 9:10 AM
alekseyshl accepted this revision.Apr 19 2018, 11:31 AM
This revision is now accepted and ready to land.Apr 19 2018, 11:31 AM
This revision was automatically updated to reflect the committed changes.