This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Fix EXPECT_DEATH tests
ClosedPublic

Authored by vitalybuka on May 20 2021, 4:31 PM.

Details

Summary

Put allocate/deallocate next to memory
access inside EXPECT_DEATH block.
This way we reduce probability that memory is not mapped
by unrelated code.

It's still not absolutely guaranty that mmap does not
happen so we repeat it few times to be sure.

Diff Detail

Event Timeline

vitalybuka created this revision.May 20 2021, 4:31 PM
vitalybuka requested review of this revision.May 20 2021, 4:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 20 2021, 4:31 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
cryptoad accepted this revision.May 20 2021, 4:36 PM

Good point!

This revision is now accepted and ready to land.May 20 2021, 4:36 PM
vitalybuka edited the summary of this revision. (Show Details)May 20 2021, 4:40 PM
This revision was landed with ongoing or failed builds.May 20 2021, 5:08 PM
This revision was automatically updated to reflect the committed changes.