This is an archive of the discontinued LLVM Phabricator instance.

[yaml2obj] Fix bug when referencing items in SectionHeaderTable
ClosedPublic

Authored by jhenderson on Jun 11 2021, 1:50 AM.

Details

Summary

There was an off-by-one error caused by an index (which included an index for the null section header) being used to check against the size of a list of sections (which didn't include the null section header).

This is a partial fix for https://bugs.llvm.org/show_bug.cgi?id=50506.

Diff Detail

Event Timeline

jhenderson created this revision.Jun 11 2021, 1:50 AM
jhenderson requested review of this revision.Jun 11 2021, 1:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 11 2021, 1:50 AM
MaskRay accepted this revision.Jun 13 2021, 11:06 AM

Looks great!

This revision is now accepted and ready to land.Jun 13 2021, 11:06 AM