Skip to content

riscv_dis_print_insn_buf

Tsukasa OI edited this page Oct 30, 2022 · 2 revisions

Fix: stack-based buffer overflow caused by riscv_insn_length change

Issue Fixed

Because commit bb996692bd9 "RISC-V/gas: allow generating up to 176-bit instructions with .insn" changed riscv_insn_length, it broke a part of both opcodes and GDB.

This patchset provides short-term solution to prevent stack-based buffer overflow.

Clone this wiki locally