This is an archive of the discontinued LLVM Phabricator instance.

[llvm] Fix MachO exports trie parsing.
ClosedPublic

Authored by ributzka on Jun 14 2022, 4:08 PM.

Details

Summary

The exports trie parser ordinal validation check doesn't consider the case where
the ordinal can be zero or negative for certain special values that are defined
in BindSpecialDylib. Update the validation to account for that fact and add a
test case.

This fixes rdar://94844233.

Diff Detail

Event Timeline

ributzka created this revision.Jun 14 2022, 4:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 4:08 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
ributzka requested review of this revision.Jun 14 2022, 4:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 4:08 PM
pete accepted this revision.Jun 14 2022, 4:59 PM

LGTM

This revision is now accepted and ready to land.Jun 14 2022, 4:59 PM

Thank you Pete

OpenMP pre-merge check issues seem unrelated to this change.

This revision was landed with ongoing or failed builds.Jun 15 2022, 9:29 AM
This revision was automatically updated to reflect the committed changes.