This commit is contained in:
Dima Turchenkov 2015-12-10 16:23:37 +03:00 committed by pancake
parent 34022329d8
commit eed20d3bca

View File

@ -645,8 +645,10 @@ repeat:
case R_ANAL_OP_TYPE_UJMP:
// switch statement
if (anal->opt.jmptbl) {
RAnalRef *last_ref = fcn->refs->tail->data;
last_ref->type = R_ANAL_REF_TYPE_NULL;
if (fcn->refs->tail) {
RAnalRef *last_ref = fcn->refs->tail->data;
last_ref->type = R_ANAL_REF_TYPE_NULL;
}
if (op.ptr != UT64_MAX) { // direct jump
ret = try_walkthrough_jmptbl(anal, fcn, depth, addr + idx, op.ptr, ret);