aboutsummaryrefslogtreecommitdiffstats
path: root/test/Object/ARM
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-04-19 11:36:47 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-04-19 11:36:47 +0000
commitdb5f9270207292b62ea847560c5dd4e9873b57f5 (patch)
treeee98d522b356532d15125ea1169791324a9c27a6 /test/Object/ARM
parent4521019c6fd23680c583abe086067fc1c569bad1 (diff)
downloadexternal_llvm-db5f9270207292b62ea847560c5dd4e9873b57f5.zip
external_llvm-db5f9270207292b62ea847560c5dd4e9873b57f5.tar.gz
external_llvm-db5f9270207292b62ea847560c5dd4e9873b57f5.tar.bz2
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
Diffstat (limited to 'test/Object/ARM')
-rw-r--r--test/Object/ARM/objdump-thumb.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Object/ARM/objdump-thumb.test b/test/Object/ARM/objdump-thumb.test
new file mode 100644
index 0000000..9c92a27
--- /dev/null
+++ b/test/Object/ARM/objdump-thumb.test
@@ -0,0 +1,4 @@
+RUN: llvm-objdump -d -macho -triple=thumbv7-apple-ios \
+RUN: %p/../Inputs/macho-text.thumb | FileCheck %s
+
+CHECK: 0: 00 bf nop