This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Fix an edge case in the secondary allocator
ClosedPublic

Authored by cryptoad on Sep 30 2016, 9:25 AM.

Details

Summary

s/CHECK_LT/CHECK_LE/ in the secondary allocator, as under certain circumstances
Ptr + Size can be equal to MapEnd. This edge case was not found by the current
tests, so those were extended to be able to catch that.

Event Timeline

cryptoad updated this revision to Diff 73067.Sep 30 2016, 9:25 AM
cryptoad retitled this revision from to [scudo] Fix an edge case in the secondary allocator.
cryptoad updated this object.
cryptoad added a subscriber: llvm-commits.
kcc accepted this revision.Sep 30 2016, 11:13 AM
kcc edited edge metadata.

LGTM

This revision is now accepted and ready to land.Sep 30 2016, 11:13 AM
cryptoad closed this revision.Sep 30 2016, 1:06 PM