def bottom(func):
'''Return the exit-points of the function ``func``.'''
fn = by(func)
fc = idaapi.FlowChart(f=fn, flags=idaapi.FC_PREDS)
exit_types = (fc_block_type_t.fcb_ret,fc_block_type_t.fcb_cndret,fc_block_type_t.fcb_noret,fc_block_type_t.fcb_enoret,fc_block_type_t.fcb_error)
return tuple(database.address.prev(n.endEA) for n in fc if n.type in exit_types)
评论列表
文章目录