mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 13:23:10 +08:00
Fix potential undefined behaviour in the RX disassembler.
* rx-dis.c (print_insn_rx): Use parenthesis to ensure correct access to opcodes.op array element.
This commit is contained in:
@ -319,7 +319,7 @@ print_insn_rx (bfd_vma addr, disassemble_info * dis)
|
||||
case '0':
|
||||
case '1':
|
||||
case '2':
|
||||
oper = opcode.op + *s - '0';
|
||||
oper = opcode.op + (*s - '0');
|
||||
if (do_size)
|
||||
{
|
||||
if (oper->type == RX_Operand_Indirect || oper->type == RX_Operand_Zero_Indirect)
|
||||
|
Reference in New Issue
Block a user