PR25344, z80 disassembler recursion
authorAlan Modra <amodra@gmail.com>
Sun, 5 Jan 2020 22:22:39 +0000 (08:52 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 6 Jan 2020 11:23:16 +0000 (21:53 +1030)
commit660e62b1d9ca02e4ec7b18e8f0a0ff0707e540ac
treec6e6dd4219926ac7d44d2d0562879ca90f43d1a5
parent01335edbac3f0fa0c06d088598e09f602833de87
PR25344, z80 disassembler recursion

PR 25344
* z80-dis.c (suffix): Don't use a local struct buffer copy.
Peek at next byte to prevent recursion on repeated prefix bytes.
Ensure uninitialised "mybuf" is not accessed.
(print_insn_z80): Don't zero n_fetch and n_used here,..
(print_insn_z80_buf): ..do it here instead.
opcodes/ChangeLog
opcodes/z80-dis.c