diff options
author | Nick Clifton <nickc@redhat.com> | 2019-10-29 15:35:30 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2019-10-29 15:35:30 +0000 |
commit | efea62b44631289f995db16faf70979d6592580b (patch) | |
tree | 18d3cf555fe601c9bdc0598389f56e6a941cfb32 /opcodes/tic30-dis.c | |
parent | 9adb25915092daa4096911d04fadb5d496c926a6 (diff) | |
download | gdb-efea62b44631289f995db16faf70979d6592580b.zip gdb-efea62b44631289f995db16faf70979d6592580b.tar.gz gdb-efea62b44631289f995db16faf70979d6592580b.tar.bz2 |
Fix array overrun when disassembling corrupt TIC30 binaries.
* tic30-dis.c (print_branch): Correct size of operand array.
Diffstat (limited to 'opcodes/tic30-dis.c')
-rw-r--r-- | opcodes/tic30-dis.c | 2 |
1 files changed, 1 insertions, 1 deletions
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} |