Next set of additional error checks for invalid Mach-O files for the
authorKevin Enderby <enderby@apple.com>
Mon, 17 Oct 2016 22:09:25 +0000 (22:09 +0000)
committerKevin Enderby <enderby@apple.com>
Mon, 17 Oct 2016 22:09:25 +0000 (22:09 +0000)
commit2490de06f78f6c93b2963c99b819a8b7933a9c83
tree61cb71e5c28fb28e8b911711912b3084a3af95d9
parentb406388e5fa92ccfd792fbabe42411d28f5ce48a
Next set of additional error checks for invalid Mach-O files for the
load commands that use the MachO::sub_framework_command,
MachO::sub_umbrella_command, MachO::sub_library_command
and MachO::sub_client_command types but are not used in llvm
libObject code but used in llvm tool code.

This includes the LC_SUB_FRAMEWORK, LC_SUB_UMBRELLA,
LC_SUB_LIBRARY and LC_SUB_CLIENT load commands.

llvm-svn: 284431
llvm/lib/Object/MachOObjectFile.cpp
llvm/test/Object/Inputs/macho-invalid-subclient-name_toobig [new file with mode: 0644]
llvm/test/Object/Inputs/macho-invalid-subframe-small [new file with mode: 0644]
llvm/test/Object/Inputs/macho-invalid-sublibrary-name_offset-toobig [new file with mode: 0644]
llvm/test/Object/Inputs/macho-invalid-subumbrella-offset-small [new file with mode: 0644]
llvm/test/Object/macho-invalid.test