Skip to content

Commit db07131

Browse files
committed
Do not iterate over function bbs, when we can iterate over bb's functions ##analysis
1 parent 1c61dae commit db07131

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libr/anal/fcn.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2243,6 +2243,9 @@ R_API RAnalBlock *r_anal_function_bbget_in(RAnal *anal, RAnalFunction *fcn, ut64
22432243
if (addr == UT64_MAX) {
22442244
return NULL;
22452245
}
2246+
#if 1
2247+
return r_anal_get_block_at (anal, addr);
2248+
#else
22462249
RListIter *iter;
22472250
RAnalBlock *bb;
22482251
const bool aligned = r_anal_is_aligned (anal, addr);
@@ -2255,6 +2258,7 @@ R_API RAnalBlock *r_anal_function_bbget_in(RAnal *anal, RAnalFunction *fcn, ut64
22552258
// return bb;
22562259
}
22572260
}
2261+
#endif
22582262
return NULL;
22592263
}
22602264

0 commit comments

Comments
 (0)