This is an archive of the discontinued LLVM Phabricator instance.

[Object, MachO] Don't crash on invalid MachO segment load commands.
ClosedPublic

Authored by samsonov on Jun 3 2015, 6:03 PM.

Details

Summary

Properly report the error in segment load commands from MachOObjectFile
constructor instead of crashing the program.

Adjust the test case accordingly.

Diff Detail

Event Timeline

samsonov updated this revision to Diff 27077.Jun 3 2015, 6:03 PM
samsonov retitled this revision from to [Object, MachO] Don't crash on invalid MachO segment load commands..
samsonov updated this object.
samsonov edited the test plan for this revision. (Show Details)
samsonov added reviewers: rafael, filcab.
samsonov added a subscriber: Unknown Object (MLST).
samsonov accepted this revision.Jun 4 2015, 1:13 PM
samsonov added a reviewer: samsonov.

r239081.

This revision is now accepted and ready to land.Jun 4 2015, 1:13 PM
samsonov closed this revision.Jun 4 2015, 1:13 PM