Fix buffer overrun in TIC30 disassembler.
authorNick Clifton <nickc@redhat.com>
Mon, 28 Oct 2019 16:15:34 +0000 (16:15 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 28 Oct 2019 16:15:34 +0000 (16:15 +0000)
commitbbf9a0b5eef3599a1c6a7a3bea40da9f2c37df83
tree6b215c99843eb341366c52988e4933ef192f730e
parentd1e304bc27b737e0e7daf0029dd5f1e91a4898ed
Fix buffer overrun in TIC30 disassembler.

* tic30-dis.c (OPERAND_BUFFER_LEN): Define.  Use as length of
operand buffer.  Set value to 15 not 13.
(get_register_operand): Use OPERAND_BUFFER_LEN.
(get_indirect_operand): Likewise.
(print_two_operand): Likewise.
(print_three_operand): Likewise.
(print_oar_insn): Likewise.
opcodes/ChangeLog
opcodes/tic30-dis.c