Fix #3134 - Handle TBZ and TBNZ instructions in ARM64 analysis (by @mickey031)

This commit is contained in:
pancake 2015-08-22 19:02:37 +02:00
parent 027bb8f11a
commit 1b77ed1249

View File

@ -537,6 +537,11 @@ static void anop64 (RAnalOp *op, cs_insn *insn) {
op->jump = IMM64(1);
op->fail = addr+op->size;
break;
case ARM64_INS_TBZ:
case ARM64_INS_TBNZ:
op->type = R_ANAL_OP_TYPE_CJMP;
op->jump = IMM64(2);
op->fail = addr+op->size;
case ARM64_INS_BR:
op->type = R_ANAL_OP_TYPE_UJMP;
op->eob = 1;