[PATCH] D127806: [llvm] Fix MachO exports trie parsing.
Juergen Ributzka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 14 16:08:34 PDT 2022
ributzka created this revision.
ributzka added reviewers: cishida, aprantl, pete, zixuw, steven_wu.
Herald added a subscriber: hiraditya.
Herald added a project: All.
ributzka requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D127806
Files:
llvm/lib/Object/MachOObjectFile.cpp
llvm/test/Object/AArch64/nm-flat-reexport.test
llvm/test/Object/Inputs/MachO/flat-reexport.yaml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127806.436968.patch
Type: text/x-patch
Size: 6643 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220614/9a6fc99d/attachment.bin>
More information about the llvm-commits
mailing list