mirror of
https://github.com/mandiant/capa.git
synced 2026-02-04 19:12:01 -08:00
viv: ignore empty branch targets
but what does this really mean? why would `getBranches` return `None`? closes #441
This commit is contained in:
@@ -499,6 +499,9 @@ def extract_insn_cross_section_cflow(f, bb, insn):
|
||||
inspect the instruction for a CALL or JMP that crosses section boundaries.
|
||||
"""
|
||||
for va, flags in insn.getBranches():
|
||||
if va is None:
|
||||
continue
|
||||
|
||||
if flags & envi.BR_FALL:
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user