Fix array overrun when disassembling corrupt TIC30 binaries.

* tic30-dis.c (print_branch): Correct size of operand array.
This commit is contained in:
Nick Clifton 2019-10-29 15:35:30 +00:00
parent 9adb259150
commit efea62b446
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2019-10-29 Nick Clifton <nickc@redhat.com>
* tic30-dis.c (print_branch): Correct size of operand array.
2019-10-29 Nick Clifton <nickc@redhat.com>
* d30v-dis.c (print_insn): Check that operand index is valid

View File

@ -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}