Next set of additional error checks for invalid Mach-O files for the
authorKevin Enderby <enderby@apple.com>
Tue, 18 Oct 2016 17:54:17 +0000 (17:54 +0000)
committerKevin Enderby <enderby@apple.com>
Tue, 18 Oct 2016 17:54:17 +0000 (17:54 +0000)
commit6f69582e9baf23c53258a47f2b2f656e1e0ac855
treef6176ffcb64006711ce1d813053a55d5c0ed7d3b
parent688c8347c994136971e0d0d47ec34d3d71376438
Next set of additional error checks for invalid Mach-O files for the
load commands that use the MachO::routines_command and
and MachO::routines_command_64 types but are not used in llvm
libObject code but used in llvm tool code.

This includes the LC_ROUTINES and LC_ROUTINES_64
load commands.

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