From: Nick Clifton Date: Tue, 29 Oct 2019 15:35:30 +0000 (+0000) Subject: Fix array overrun when disassembling corrupt TIC30 binaries. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=efea62b44631289f995db16faf70979d6592580b;p=binutils-gdb.git Fix array overrun when disassembling corrupt TIC30 binaries. * tic30-dis.c (print_branch): Correct size of operand array. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index ae2e00ce9b6..cadb065de15 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2019-10-29 Nick Clifton + + * tic30-dis.c (print_branch): Correct size of operand array. + 2019-10-29 Nick Clifton * d30v-dis.c (print_insn): Check that operand index is valid diff --git a/opcodes/tic30-dis.c b/opcodes/tic30-dis.c index a28be8307f8..29948f40196 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}