From efea62b44631289f995db16faf70979d6592580b Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 29 Oct 2019 15:35:30 +0000 Subject: Fix array overrun when disassembling corrupt TIC30 binaries. * tic30-dis.c (print_branch): Correct size of operand array. --- opcodes/tic30-dis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opcodes/tic30-dis.c') diff --git a/opcodes/tic30-dis.c b/opcodes/tic30-dis.c index a28be83..29948f4 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} -- cgit v1.1