Commit cdac1d8
committed
[MachO] Fatal error on invalid section index
When there are more than 255 sections, MachO object writer allows
creation of object files which are potentially malformed. Currently,
there is an assertion in object writer code that prevents it. But for
distributions where assertions are turned on this still results in
creation of malformed objects. Turning the assertion into an explicit
fatal error.1 parent c193eea commit cdac1d8
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
649 | | - | |
| 649 | + | |
| 650 | + | |
650 | 651 | | |
651 | 652 | | |
652 | 653 | | |
| |||
0 commit comments