Fix oobread bug in the GNU arm64 disassembler (#18612)

This commit is contained in:
pancake 2021-04-21 18:10:12 +02:00 committed by GitHub
parent 580ebc8edc
commit 612fc9b35a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5101,7 +5101,7 @@ print_insn_arm (bfd_vma pc, struct disassemble_info *info, long given)
}
U_reg = value;
}
func (stream, "%s", arm_regnames[value]);
func (stream, "%s", value < 16? arm_regnames[value]: "?");
break;
case 'd':
func (stream, "%ld", value);