Next set of additional error checks for invalid Mach-O files for the
authorKevin Enderby <enderby@apple.com>
Wed, 28 Sep 2016 23:16:01 +0000 (23:16 +0000)
committerKevin Enderby <enderby@apple.com>
Wed, 28 Sep 2016 23:16:01 +0000 (23:16 +0000)
commit76966bf06629e6b73e8d62cf714d5e7cee579bff
tree452faa8a37e20e486261d117cdf6e5ef8c418ce5
parentae1ba73aeb538d26e44c6e66209a6ef49fd8a1b9
Next set of additional error checks for invalid Mach-O files for the
load command that uses the Mach::rpath_command type
but not used in llvm libObject code but used in llvm tool code.

This includes just the LC_RPATH load command.

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