diff options
| author | verylazyguy <verylazyguy@hotmail.com> | 2019-08-29 12:59:36 -0400 |
|---|---|---|
| committer | Jordan <jordan@psifertex.com> | 2019-10-09 14:36:21 -0400 |
| commit | c0c1207ff744a9b586b34c4916fe63bc4a89259a (patch) | |
| tree | 043384d392340af7e9609dcc082a85b1ec956453 /python | |
| parent | 36fb31e707793ec372b0c22c13936acde7b3dab8 (diff) | |
- get_functions_containing() now always returns a list so it can be used directly in a for loop
Diffstat (limited to 'python')
| -rw-r--r-- | python/binaryview.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index 5a1741c5..1e18acb4 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -2895,11 +2895,9 @@ class BinaryView(object): ``get_functions_containing`` returns a list of functions which contain the given address or None on failure. :param int addr: virtual address to query. - :rtype: list of Function objects or None + :rtype: list of Function objects """ basic_blocks = self.get_basic_blocks_at(addr) - if len(basic_blocks) == 0: - return None result = [] for block in basic_blocks: |
