Merge pull request #442 from fireeye/williballenthin-patch-2

viv: ignore empty branch targets
This commit is contained in:
Willi Ballenthin
2021-03-01 08:43:26 -07:00
committed by GitHub

View File

@@ -499,6 +499,10 @@ 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:
# va may be none for dynamic branches that haven't been resolved, such as `jmp eax`.
continue
if flags & envi.BR_FALL:
continue