This is an archive of the discontinued LLVM Phabricator instance.

scudo: Move getChunkFromBlock() allocated check into caller. NFCI.
ClosedPublic

Authored by pcc on Dec 10 2019, 11:20 AM.

Details

Summary

With tag-on-free we will need to get the chunk of a deallocated block. Change
getChunkFromBlock() so that it doesn't check that the chunk is allocated,
and move the check into the caller, so that it can be reused for this purpose.

Diff Detail

Event Timeline

pcc created this revision.Dec 10 2019, 11:20 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 10 2019, 11:20 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Build result: pass - 60656 tests passed, 0 failed and 726 were skipped.

Log files: console-log.txt, CMakeCache.txt

cryptoad accepted this revision.Dec 10 2019, 11:38 AM
This revision is now accepted and ready to land.Dec 10 2019, 11:38 AM
This revision was automatically updated to reflect the committed changes.