Stop potential illegal memory access in the NS32K disassembler.
authorNick Clifton <nickc@redhat.com>
Mon, 28 Oct 2019 15:44:23 +0000 (15:44 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 28 Oct 2019 15:44:23 +0000 (15:44 +0000)
commitd1e304bc27b737e0e7daf0029dd5f1e91a4898ed
tree6012ec739d51e5668f3249ffd9ab85c5f67630fd
parentdee334510fe3940456bd282fc9da9ff9257d8483
Stop potential illegal memory access in the NS32K disassembler.

* ns32k-dis.c (bit_extract): Add sanitiy check of parameters.
(bit_extract_simple): Likewise.
(bit_copy): Likewise.
(pirnt_insn_ns32k): Ensure that uninitialised elements in the
index_offset array are not accessed.
opcodes/ChangeLog
opcodes/ns32k-dis.c