diff options
| author | Brian Potchik <brian@vector35.com> | 2021-02-12 13:58:24 -0500 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2021-02-12 13:58:24 -0500 |
| commit | 902ef4d9ca892e3de23355c3c0fc7b49bf1d9726 (patch) | |
| tree | c4f028a37c10ff26b235a13959d133284667e4de /python/function.py | |
| parent | 413eb2a9332c425a57a8ed6e22c71011f22a73df (diff) | |
Add unresolved control-flow tracking and associated tag support.
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/python/function.py b/python/function.py index 53a0ec57..15bbf251 100644 --- a/python/function.py +++ b/python/function.py @@ -1660,6 +1660,22 @@ class Function(object): 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""" handle = ctypes.cast(self.handle, ctypes.c_void_p) |
