Fix array overruns in the S12Z disassembler.
authorNick Clifton <nickc@redhat.com>
Tue, 29 Oct 2019 09:17:39 +0000 (09:17 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 29 Oct 2019 09:17:39 +0000 (09:17 +0000)
commit66a66a17f489a4ffc614a31855e8d6f516e24640
tree05d7f8980ceded5a6c341b4bee01813e86c02e7d
parent2f1575ea6f93a3f0c2b439ac6bf5fe34ef42a1ad
Fix array overruns in the S12Z disassembler.

* s12z-dis.c (opr_emit_disassembly): Check for illegal register
values.
(shift_size_table): Use a fixed size defined as S12Z_N_SIZES.
(print_insn_s12z):  Check for illegal size values.
opcodes/ChangeLog
opcodes/s12z-dis.c
opcodes/s12z-opc.c