This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Commit: Fix size of operand array in TIC30 disassembler


Hi Guys.

  My previous patch to fix the TIC30 disassembler missed a spot.
  Fixed like this:

Cheers
  Nick

2019-10-29  Nick Clifton  <nickc@redhat.com>

	* tic30-dis.c (print_branch): Correct size of operand array.

diff --git a/opcodes/tic30-dis.c b/opcodes/tic30-dis.c
index a28be8307f..29948f4019 100644
--- a/opcodes/tic30-dis.c
+++ b/opcodes/tic30-dis.c
@@ -607,7 +607,7 @@ print_branch (disassemble_info *info,
 	      unsigned long insn_word,
 	      struct instruction *insn)
 {
-  char operand[2][13] =
+  char operand[2][OPERAND_BUFFER_LEN] =
   {
     {0},
     {0}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]