Skip to content

Commit

Permalink
Fix off by one error. (#2180)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 authored Oct 23, 2023
1 parent 5fb8a42 commit 4834d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ARM/ARMMapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ static void add_cs_detail_general(MCInst *MI, arm_op_group op_group,
unsigned int imm3 = MCInst_getOpVal(MI, OpNum + 2);
unsigned ShOff = ARM_AM_getAM2Offset(imm3);
ARM_AM_AddrOpc subtracted = ARM_AM_getAM2Op(imm3);
if (!MCOperand_getReg(MCInst_getOperand(MI, OpNum + 2)) &&
if (!MCOperand_getReg(MCInst_getOperand(MI, OpNum + 1)) &&
ShOff) {
ARM_get_detail_op(MI, 0)->shift.type =
(arm_shifter)subtracted;
Expand Down

0 comments on commit 4834d19

Please sign in to comment.