Fix a bugs in the Mach-O disassembler when disassembling from a
authorKevin Enderby <enderby@apple.com>
Sat, 10 Oct 2015 00:05:01 +0000 (00:05 +0000)
committerKevin Enderby <enderby@apple.com>
Sat, 10 Oct 2015 00:05:01 +0000 (00:05 +0000)
commit3d5fd2a768c5e5456d8ab19cab037490f4bdf8f9
treee5192fd8aba29434d5c9d37a60768645e05b1c37
parenta03aa8f8e72231673a35b6df5c42690630e2d186
Fix a bugs in the Mach-O disassembler when disassembling from a
malformed Mach-O file that caused a crash.  This was because of an
assert where the code was incorrectly attempting to parse relocation
entries off of the sections and the filetype was not an MH_OBJECT.

rdar://22983603

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249921 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objdump/Inputs/malformed-machos/mem-crup-0337.macho [new file with mode: 0644]
test/tools/llvm-objdump/malformed-machos.test
tools/llvm-objdump/MachODump.cpp