Fix potential illegal memory access when disassembling corrupt RX binaries.
authorNick Clifton <nickc@redhat.com>
Wed, 16 Oct 2019 11:56:58 +0000 (12:56 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 16 Oct 2019 11:56:58 +0000 (12:56 +0100)
commit12234dfd5f70086fde87e1f6d56cf2aa2ce5ec4c
tree028cf48e4d7c71d06166f1290b3e321caccc6f9d
parentdfde93ab8ccdea59f667204bb93056c95a83dfda
Fix potential illegal memory access when disassembling corrupt RX binaries.

opcodes * rx-dis.c (get_register_name): New function.  Provides safe
access to name array.
(get_condition_name, get_flag_name, get_double_register_name)
(get_double_register_high_name, get_double_register_low_name)
(get_double_control_register_name, get_double_condition_name):
Likewise.
(print_insn_rx): Use the accessor functions.
opcodes/ChangeLog
opcodes/rx-dis.c