https://sourceware.org/bugzilla/show_bug.cgi?id=32586

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
riscv-dis.c:1444 sets dump_size from riscv_insn_length which looks like it can
be up to 22 bytes.  A carefully constructed testcase that gets this value from
riscv_insn_length but then has only 20 bytes in the section will result in
riscv_disassemble_data being called with bytes_per_chunk of 20.

cat > xxx.s <<EOF
 .byte 0x7f,0xef,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
EOF
gas/as-new -o xxx.o xxx.s
binutils/objcopy --strip-symbol '$d' xxx.o xx.o
binutils/objdump -d xx.o

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to