https://sourceware.org/bugzilla/show_bug.cgi?id=25344
Bug ID: 25344
Summary: z80 disassembler recursion
Product: binutils
Version: 2.34 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: amodra at gmail dot com
Target Milestone: ---
cat > z80.s <<EOF
.text
.byte 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40
EOF
gas/as-new -ez80 z80.s
valgrind binutils/objdump -d a.out
00000000 <.text>:
==23670== Conditional jump or move depends on uninitialised value(s)
==23670== at 0x160C0D: suffix (z80-dis.c:749)
==23670== by 0x160B39: print_insn_z80_buf (z80-dis.c:861)
==23670== by 0x160BF8: suffix (z80-dis.c:745)
==23670== by 0x160B39: print_insn_z80_buf (z80-dis.c:861)
==23670== by 0x160BF8: suffix (z80-dis.c:745)
==23670== by 0x160B39: print_insn_z80_buf (z80-dis.c:861)
==23670== by 0x160BF8: suffix (z80-dis.c:745)
==23670== by 0x160B39: print_insn_z80_buf (z80-dis.c:861)
==23670== by 0x160BF8: suffix (z80-dis.c:745)
==23670== by 0x160B39: print_insn_z80_buf (z80-dis.c:861)
==23670== by 0x160BF8: suffix (z80-dis.c:745)
==23670== by 0x160B39: print_insn_z80_buf (z80-dis.c:861)
Also, recursion is only bounded by the number of 0x40 (or 0x49, 0x52, 0x5b)
bytes.
--
You are receiving this mail because:
You are on the CC list for the bug.