From f6dd4781ef99e26500c98e3eb54bf01c7295915f Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 26 Oct 2011 14:46:00 +0000 Subject: PR binutils/13348 * i386-dis.c (print_insn): Fix testing of array subscript. --- opcodes/ChangeLog | 6 +++++- opcodes/i386-dis.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 68239dd..4d18f6a 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,7 +1,11 @@ +2011-10-26 Nick Clifton + + PR binutils/13348 + * i386-dis.c (print_insn): Fix testing of array subscript. + 2011-10-26 Joern Rennecke * disassemble.c (ARCH_epiphany): Move into alphasorted spot. - * epiphany-asm.c, epiphany-opc.h: Regenerate. 2011-10-25 Joern Rennecke diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 85b63ea..019a8f5 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -11331,7 +11331,7 @@ print_insn (bfd_vma pc, disassemble_info *info) { /* Too many prefixes or unused REX prefixes. */ for (i = 0; - all_prefixes[i] && i < (int) ARRAY_SIZE (all_prefixes); + i < (int) ARRAY_SIZE (all_prefixes) && all_prefixes[i]; i++) (*info->fprintf_func) (info->stream, "%s", prefix_name (all_prefixes[i], sizeflag)); -- cgit v1.1