Skip to content

Commit

Permalink
Fixing IndexOutOfBoundsException with negative register index
Browse files Browse the repository at this point in the history
  • Loading branch information
Away-pp committed Dec 10, 2023
1 parent 2d5c0fd commit d10912e
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 d10912e

Please sign in to comment.