From 902ef4d9ca892e3de23355c3c0fc7b49bf1d9726 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Fri, 12 Feb 2021 13:58:24 -0500 Subject: Add unresolved control-flow tracking and associated tag support. --- python/function.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'python/function.py') diff --git a/python/function.py b/python/function.py index 53a0ec57..15bbf251 100644 --- a/python/function.py +++ b/python/function.py @@ -1659,6 +1659,22 @@ class Function(object): core.BNFreeIndirectBranchList(branches) return result + @property + def unresolved_indirect_branches(self): + """List of unresolved indirect branches (read-only)""" + count = ctypes.c_ulonglong() + addrs = core.BNGetUnresolvedIndirectBranches(self.handle, count) + result = [] + for i in range(0, count.value): + result.append(addrs[i]) + core.BNFreeAddressList(addrs) + return result + + @property + def has_unresolved_indirect_branches(self): + """Has unresolved indirect branches (read-only)""" + return core.BNHasUnresolvedIndirectBranches(self.handle) + @property def session_data(self): """Dictionary object where plugins can store arbitrary data associated with the function""" -- cgit v1.3.1