Don't read one command past the end.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 19 Apr 2013 11:36:47 +0000 (11:36 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 19 Apr 2013 11:36:47 +0000 (11:36 +0000)
commitdb5f9270207292b62ea847560c5dd4e9873b57f5
treeee98d522b356532d15125ea1169791324a9c27a6
parent4521019c6fd23680c583abe086067fc1c569bad1
Don't read one command past the end.

Thanks to Evgeniy Stepanov for reporting this.

It might be a good idea to add a command iterator abstraction to MachO.h, but
this fixes the bug for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179848 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/MachOObjectFile.cpp
test/Object/ARM/objdump-thumb.test [new file with mode: 0644]
test/Object/Inputs/macho-text.thumb [new file with mode: 0644]
tools/llvm-objdump/MachODump.cpp