Fix a potential buffer overrun in the MMIX disassembler when processing a corrupt...
authorNick Clifton <nickc@redhat.com>
Tue, 3 Sep 2019 08:53:25 +0000 (09:53 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 3 Sep 2019 08:53:25 +0000 (09:53 +0100)
commit1e4b5e7d354a41276cb8dfbaae79915e1730dbd8
tree160ea2d4f2e38d86148b1b01d9c49569aefe31cc
parent6591bf0131d1d1c8c0e4de59ca2dd739dda86ddd
Fix a potential buffer overrun in the MMIX disassembler when processing a corrupt input file.

PR 24958
* mmix-dis.c (MAX_REG_NAME_LEN): Define.
(MAX_SPEC_REG_NAME_LEN): Define.
(struct mmix_dis_info): Use defined constants for array lengths.
(get_reg_name): New function.
(get_sprec_reg_name): New function.
(print_insn_mmix): Use new functions.
opcodes/ChangeLog
opcodes/mmix-dis.c
This page took 0.025283 seconds and 4 git commands to generate.