mirror of
https://github.com/mandiant/capa.git
synced 2026-01-07 19:01:04 -08:00
Merge pull request #145 from fireeye/bug-fix-for-101
bug fix: remove lazy map() eval
This commit is contained in:
@@ -36,7 +36,8 @@ def extract_function_loop(f):
|
||||
|
||||
# construct control flow graph
|
||||
for bb in idaapi.FlowChart(f):
|
||||
map(lambda s: edges.append((bb.start_ea, s.start_ea)), bb.succs())
|
||||
for succ in bb.succs():
|
||||
edges.append((bb.start_ea, succ.start_ea))
|
||||
|
||||
if loops.has_loop(edges):
|
||||
yield Characteristic("loop"), f.start_ea
|
||||
|
||||
Reference in New Issue
Block a user