mirror of
https://github.com/mandiant/capa.git
synced 2026-01-25 18:54:45 -08:00
Merge pull request #436 from fireeye/fix/ida/unmapped-data-ref
check for unmapped addresses when resolving data references
This commit is contained in:
@@ -351,6 +351,10 @@ def find_data_reference_from_insn(insn, max_depth=10):
|
||||
# break if circular reference
|
||||
break
|
||||
|
||||
if not idaapi.is_mapped(data_refs[0]):
|
||||
# break if address is not mapped
|
||||
break
|
||||
|
||||
depth += 1
|
||||
if depth > max_depth:
|
||||
# break if max depth
|
||||
|
||||
Reference in New Issue
Block a user