This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Fix LOH parsing segfault
ClosedPublic

Authored by int3 on Jul 21 2022, 10:12 AM.

Details

Reviewers
thakis
BertalanD
Group Reviewers
Restricted Project
Commits
rGec315a5fa1c5: [lld-macho] Fix LOH parsing segfault
Summary

advanceSubsection() didn't account for the possibility that a section
could have no subsections.

Diff Detail

Event Timeline

int3 created this revision.Jul 21 2022, 10:12 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 21 2022, 10:12 AM
int3 requested review of this revision.Jul 21 2022, 10:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 21 2022, 10:12 AM
int3 updated this revision to Diff 446559.Jul 21 2022, 10:22 AM

more detailed comment

thakis accepted this revision.Jul 21 2022, 10:47 AM
thakis added a subscriber: thakis.

thanks!

This revision is now accepted and ready to land.Jul 21 2022, 10:47 AM
BertalanD accepted this revision.Jul 21 2022, 10:49 AM
This revision was automatically updated to reflect the committed changes.