Next set of additional error checks for invalid Mach-O files for the
authorKevin Enderby <enderby@apple.com>
Thu, 29 Sep 2016 17:45:23 +0000 (17:45 +0000)
committerKevin Enderby <enderby@apple.com>
Thu, 29 Sep 2016 17:45:23 +0000 (17:45 +0000)
commit245be3ed2ab4f49df8f7508d8251575720e7fd4d
tree8e35da56ac5f4ef620abdbb4c232141ff488daee
parenta9b0dd0e5138aa0c48047bcbd75c9ee76767d11f
Next set of additional error checks for invalid Mach-O files for the
load command that uses the Mach::source_version_command type
but not used in llvm libObject code but used in llvm tool code.

This includes just the LC_SOURCE_VERSION load command.

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