Properly report the error in segment load commands from MachOObjectFile
constructor instead of crashing the program.
Adjust the test case accordingly.
Paths
| Differential D10231
[Object, MachO] Don't crash on invalid MachO segment load commands. ClosedPublic Authored by samsonov on Jun 3 2015, 6:03 PM.
Details
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jun 4 2015, 1:13 PM
Revision Contents
Diff 27077 include/llvm/Object/Error.h
lib/Object/Error.cpp
lib/Object/MachOObjectFile.cpp
test/Object/macho-invalid.test
|