diff options
| author | Josh Ferrell <josh@vector35.com> | 2024-02-06 13:44:40 -0500 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2024-02-06 13:44:40 -0500 |
| commit | 661c77ab75f1365910e925640577c36dc47c47c7 (patch) | |
| tree | a5f4c8463ee5ea3781566f093d1a2d5a602cca77 /python | |
| parent | 0baa696658e0cbaff7be6727290e843aec26c84f (diff) | |
Prevent crash in BinaryView.get_external_locations
Diffstat (limited to 'python')
| -rw-r--r-- | python/binaryview.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index 9b391cf5..cb671d58 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -8741,7 +8741,7 @@ class BinaryView: for i in range(count.value): new_handle = core.BNNewExternalLocationReference(handles[i]) assert new_handle is not None, "core.BNNewExternalLocationReference returned None" - result.append(externallibrary.ExternalLocation(handles[i])) + result.append(externallibrary.ExternalLocation(new_handle)) return result finally: core.BNFreeExternalLocationList(handles, count.value) |
