Fixed bugs in llvm-obdump while parsing Mach-O files from malformed archives
authorKevin Enderby <enderby@apple.com>
Mon, 12 Oct 2015 22:04:54 +0000 (22:04 +0000)
committerKevin Enderby <enderby@apple.com>
Mon, 12 Oct 2015 22:04:54 +0000 (22:04 +0000)
commit062054e5caa88d31ff93a21bf418d1e8d232cce3
tree144a7c075107936d9f141e26a250579cf9e9dbf0
parentce28cbb5077c068af4f24d1e04b8ddfa54a2261c
Fixed bugs in llvm-obdump while parsing Mach-O files from malformed archives
that caused aborts.  This was because of the characters of the ‘Size’ field in
the archive header did not contain decimal characters.

rdar://22983603

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250117 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/Archive.h
lib/Object/Archive.cpp
test/tools/llvm-objdump/X86/Inputs/malformed-machos/00000031.a [new file with mode: 0644]
test/tools/llvm-objdump/X86/malformed-machos.test