Stop function analysis at jump

This commit is contained in:
Jaume Delclòs (cosarara) 2013-06-26 10:11:51 +02:00 committed by pancake
parent 0f1079af9c
commit cc102cbd6a

View File

@ -146,6 +146,13 @@ R_API int r_anal_fcn(RAnal *anal, RAnalFunction *fcn, ut64 addr, ut8 *buf, ut64
}
switch (op.type) {
case R_ANAL_OP_TYPE_JMP:
if (!r_anal_fcn_xref_add (anal, fcn, op.addr, op.jump,
R_ANAL_REF_TYPE_CODE)) {
r_anal_op_fini (&op);
return R_ANAL_RET_ERROR;
} else {
return R_ANAL_RET_END;
}
case R_ANAL_OP_TYPE_CJMP:
#if 0
// do not add xrefs for cjmps?