llvm/lib/Object
Kevin Enderby 7bcdeca5fc Next set of additional error checks for invalid Mach-O files for bad load commands
that use the Mach::dylib_command type for the load commands that are
currently used in the MachOObjectFile constructor.

This contains the missing checks for LC_ID_DYLIB, LC_ID_DYLIB, etc.
load commands and the fields for the Mach::dylib_command type.

Also checks that only an MH_DYLIB or MH_STUB_DYLIB has an
LC_ID_DYLIB load command (and others filetype don’t) and there
is not more than one of these load commands.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282008 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-20 20:14:14 +00:00
..
Archive.cpp
ArchiveWriter.cpp
Binary.cpp
CMakeLists.txt
COFFObjectFile.cpp
ELF.cpp
ELFObjectFile.cpp
Error.cpp
IRObjectFile.cpp [IRObjectFile] Turn llvm_unreachable("foo") into something more explicative. 2016-09-16 16:07:19 +00:00
LLVMBuild.txt
MachOObjectFile.cpp Next set of additional error checks for invalid Mach-O files for bad load commands 2016-09-20 20:14:14 +00:00
MachOUniversal.cpp
ModuleSummaryIndexObjectFile.cpp
Object.cpp
ObjectFile.cpp
RecordStreamer.cpp [IRObjectFile] Handle undefined weak symbols in RecordStreamer. 2016-09-15 17:54:22 +00:00
RecordStreamer.h [IRObjectFile] Handle undefined weak symbols in RecordStreamer. 2016-09-15 17:54:22 +00:00
SymbolicFile.cpp
SymbolSize.cpp