This is an archive of the discontinued LLVM Phabricator instance.

[RuntimeDyld] Add bounds checking to SectionEntry::advanceStubOffset
ClosedPublic

Authored by sanjoy on Nov 13 2015, 7:04 PM.

Details

Summary

Change SectionEntry to keep track of the size of its underlying
allocation, and use that to bounds check advanceStubOffset.

Diff Detail

Repository
rL LLVM

Event Timeline

sanjoy updated this revision to Diff 40198.Nov 13 2015, 7:04 PM
sanjoy retitled this revision from to [RuntimeDyld] Add bounds checking to SectionEntry::advanceStubOffset.
sanjoy updated this object.
sanjoy added reviewers: lhames, andrew.w.kaylor, reames.
sanjoy added a subscriber: llvm-commits.
andrew.w.kaylor accepted this revision.Nov 20 2015, 3:29 PM
andrew.w.kaylor edited edge metadata.

lgtm

This revision is now accepted and ready to land.Nov 20 2015, 3:29 PM
sanjoy updated this revision to Diff 40847.Nov 20 2015, 4:35 PM
sanjoy edited edge metadata.
  • More bounds checking: add bounds check to getFooWithOffset accessors
This revision was automatically updated to reflect the committed changes.