Addresses llvm.org/PR49405.
Details
Details
- Reviewers
oontvoo - Group Reviewers
Restricted Project - Commits
- rGa43f588e0128: [lld-macho] Implement -segprot
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lld/MachO/Driver.cpp | ||
---|---|---|
993–995 | Maybe I'm being paranoid - but should you check NumValues() to ensure they're 3 (and ignore the option if it's not) to avoid index-out-of-bounds? |
lld/MachO/Driver.cpp | ||
---|---|---|
993–995 | The option parser already handles that :) I'll add a test to make sure. |
lld/MachO/Driver.cpp | ||
---|---|---|
993–995 | Ah! That's right - you've already declared 3 values in the .td file. |
Maybe I'm being paranoid - but should you check NumValues() to ensure they're 3 (and ignore the option if it's not) to avoid index-out-of-bounds?