Fixed two bugs in llvm-objdump’s printing of Objective-C meta data
authorKevin Enderby <enderby@apple.com>
Fri, 9 Oct 2015 16:48:44 +0000 (16:48 +0000)
committerKevin Enderby <enderby@apple.com>
Fri, 9 Oct 2015 16:48:44 +0000 (16:48 +0000)
commitaf907194730941859a32c6fad1005aa9164bc713
treeb429a8b5cbc72c26c4f5b0a5262f0677b790450b
parentfb36ba7b83c01857d2838ac1be550e14639d3d01
Fixed two bugs in llvm-objdump’s printing of Objective-C meta data
from malformed Mach-O files that caused crashes.  The first because the
offset in a dyld bind table entry was out of range.  The second because their
was no image info section and the routine printing it did not have the
need check to see the section did not exist.

rdar://22983603

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