Next set of additional error checks for invalid Mach-O files for the
authorKevin Enderby <enderby@apple.com>
Thu, 29 Sep 2016 21:07:29 +0000 (21:07 +0000)
committerKevin Enderby <enderby@apple.com>
Thu, 29 Sep 2016 21:07:29 +0000 (21:07 +0000)
commit4f229d867bb9fc9ad4f814362b320948fdad46e9
tree7633b780a0dbe236366e1cc98ea1b42487c38cf2
parent7a941e2b2b581ae9525ded009a9d92ac0d5d84fd
Next set of additional error checks for invalid Mach-O files for the
load command that uses the MachO::entry_point_command type
but not used in llvm libObject code but used in llvm tool code.

This includes just the LC_MAIN load command.

llvm-svn: 282766
llvm/lib/Object/MachOObjectFile.cpp
llvm/test/Object/Inputs/macho-invalid-entry-bad-size [new file with mode: 0644]
llvm/test/Object/Inputs/macho-invalid-entry-more-than-one [new file with mode: 0644]
llvm/test/Object/macho-invalid.test