One more additional error check for invalid Mach-O files for a
authorKevin Enderby <enderby@apple.com>
Tue, 18 Oct 2016 20:24:12 +0000 (20:24 +0000)
committerKevin Enderby <enderby@apple.com>
Tue, 18 Oct 2016 20:24:12 +0000 (20:24 +0000)
commit89baf99c924bcb484339c2b06d49cfc1b63df761
tree514a14d917210ba351d64b5b3be5a4b7c608bb2d
parent304b124a118a5568eac472797afd00bd4b05b49a
One more additional error check for invalid Mach-O files for a
load command that use the MachO:: linkedit_data_command
type but is not used in llvm libObject code but used in llvm tool code.

This is for the LC_CODE_SIGNATURE load command.

llvm-svn: 284529
llvm/lib/Object/MachOObjectFile.cpp
llvm/test/Object/Inputs/macho-invalid-codesign-bad-size [new file with mode: 0644]
llvm/test/Object/macho-invalid.test