Skip to content

Commit

Permalink
fix: IndexOutOfBoundsException with negative register index (PR #2056)
Browse files Browse the repository at this point in the history
Co-authored-by: Away-pp <[email protected]>
  • Loading branch information
Away-pp and Away-pp authored Dec 10, 2023
1 parent 2d5c0fd commit d5bf9f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void decode(DexInsnData insn, int opcodeUnit, SectionReader in) {
@Override
public void decode(DexInsnData insn, int opcodeUnit, SectionReader in) {
int[] regs = insn.getArgsReg();
regs[0] = signedByte1(opcodeUnit);
regs[0] = byte1(opcodeUnit);
insn.setTarget(insn.getOffset() + in.readShort());
}
};
Expand Down

0 comments on commit d5bf9f2

Please sign in to comment.