diff options
author | Nick Clifton <nickc@redhat.com> | 2019-09-03 09:53:25 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2019-09-03 09:53:25 +0100 |
commit | 1e4b5e7d354a41276cb8dfbaae79915e1730dbd8 (patch) | |
tree | 160ea2d4f2e38d86148b1b01d9c49569aefe31cc /opcodes/rl78-decode.opc | |
parent | 6591bf0131d1d1c8c0e4de59ca2dd739dda86ddd (diff) | |
download | gdb-1e4b5e7d354a41276cb8dfbaae79915e1730dbd8.zip gdb-1e4b5e7d354a41276cb8dfbaae79915e1730dbd8.tar.gz gdb-1e4b5e7d354a41276cb8dfbaae79915e1730dbd8.tar.bz2 |
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.
Diffstat (limited to 'opcodes/rl78-decode.opc')
0 files changed, 0 insertions, 0 deletions