OSDN Git Service

Fix a bug in llvm-objdump’s printing of Objective-C meta data
authorKevin Enderby <enderby@apple.com>
Thu, 8 Oct 2015 22:50:55 +0000 (22:50 +0000)
committerKevin Enderby <enderby@apple.com>
Thu, 8 Oct 2015 22:50:55 +0000 (22:50 +0000)
commit1ef3c282a257230e4168799dd3c676ee92e1b250
treea7f8c9d522596122db245866fbe2bbfb0419f497
parente38e995296990da45788fe474d38d2642d38026b
Fix a bug in llvm-objdump’s printing of Objective-C meta data
from malformed Mach-O files that caused a crash because of a
section header had a size that extended past the end of the file.

rdar://22983603

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