RISC-V: Fix buffer overflow on print_insn_riscv
authorTsukasa OI <research_trasio@irq.a4lg.com>
Tue, 4 Oct 2022 08:35:30 +0000 (08:35 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Tue, 4 Oct 2022 13:21:41 +0000 (13:21 +0000)
commit73e30e726cd778d055a81c1f4c2ccff1c1acdaa9
tree9f0b9a33a5ca332a9891980b7d4b3406777b2e1e
parent136ea8742027eaa257be7ef9a4dbdc86c08aba27
RISC-V: Fix buffer overflow on print_insn_riscv

Because riscv_insn_length started to support instructions up to 176-bit,
we need to increase packet buffer size to 176-bit in size.

include/ChangeLog:

* opcode/riscv.h (RISCV_MAX_INSN_LEN): Max instruction length for
use in buffer size.

opcodes/ChangeLog:

* riscv-dis.c (print_insn_riscv): Increase buffer size for max
176-bit length instructions.
include/opcode/riscv.h
opcodes/riscv-dis.c