From 661c77ab75f1365910e925640577c36dc47c47c7 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Tue, 6 Feb 2024 13:44:40 -0500 Subject: Prevent crash in BinaryView.get_external_locations --- python/binaryview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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) -- cgit v1.3.1