Skip to content

Commit

Permalink
Remove invalid anal str for const-class instruction. Fix radareorg#5911
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ng3r authored and radare committed Oct 5, 2016
1 parent c1b4cd6 commit 4e3849c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libr/anal/p/anal_dalvik.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,16 @@ static int dalvik_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int l
op->ptr = vA;
break;
case 0x1a: // const-string
case 0x1c: // const-class
op->type = R_ANAL_OP_TYPE_MOV;
{
ut32 vB = (data[3]<<8) | data[2];
ut64 offset = R_ANAL_GET_OFFSET(anal, 's', vB);
ut64 offset = R_ANAL_GET_OFFSET (anal, 's', vB);
op->ptr = offset;
}
break;
case 0x1c: // const-class
op->type = R_ANAL_OP_TYPE_MOV;
break;
case 0x85: // long-to-float
case 0x8e: // double-to-int
case 0x89: // float-to-double
Expand Down

0 comments on commit 4e3849c

Please sign in to comment.