Next set of additional error checks for invalid Mach-O files for the
authorKevin Enderby <enderby@apple.com>
Tue, 27 Sep 2016 23:24:13 +0000 (23:24 +0000)
committerKevin Enderby <enderby@apple.com>
Tue, 27 Sep 2016 23:24:13 +0000 (23:24 +0000)
commit3e490ef94efbf87d52aea11eee8bc25739ca95d1
tree641c1064dc7d4f68ed67335ea9114fdbc19b3545
parent75ad3de85b7025e7241e9ee869c6840bee88a531
Next set of additional error checks for invalid Mach-O files for the
other load commands that use the MachO::dylinker_command type
but not used in llvm libObject code but used in llvm tool code.

This includes LC_ID_DYLINKER, LC_LOAD_DYLINKER
and LC_DYLD_ENVIRONMENT load commands.

llvm-svn: 282553
llvm/lib/Object/MachOObjectFile.cpp
llvm/test/Object/Inputs/macho-invalid-dyld-name_offset-toobig [new file with mode: 0644]
llvm/test/Object/Inputs/macho-invalid-dyld-name_toobig [new file with mode: 0644]
llvm/test/Object/Inputs/macho-invalid-dyld-small [new file with mode: 0644]
llvm/test/Object/macho-invalid.test