From 963d7bc33e1957a5e041b014485d93e78a01ba7e Mon Sep 17 00:00:00 2001 From: kat Date: Mon, 4 Nov 2024 11:53:47 -0500 Subject: [SharedCache] very Hotfix for 'SharedCache.load_image_with_install_name' --- view/sharedcache/api/python/sharedcache.py | 3 +-- view/sharedcache/core/SharedCache.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'view/sharedcache') diff --git a/view/sharedcache/api/python/sharedcache.py b/view/sharedcache/api/python/sharedcache.py index 54745ed5..b660d9d9 100644 --- a/view/sharedcache/api/python/sharedcache.py +++ b/view/sharedcache/api/python/sharedcache.py @@ -109,8 +109,7 @@ class SharedCache: self.handle = sccore.BNGetSharedCache(view.handle) def load_image_with_install_name(self, installName): - str = BNAllocString(installName.encode('utf-8')) - return sccore.BNDSCViewLoadImageWithInstallName(self.handle, str) + return sccore.BNDSCViewLoadImageWithInstallName(self.handle, installName) def load_section_at_address(self, addr): return sccore.BNDSCViewLoadSectionAtAddress(self.handle, addr) diff --git a/view/sharedcache/core/SharedCache.cpp b/view/sharedcache/core/SharedCache.cpp index 9bfa59ad..4d0f0046 100644 --- a/view/sharedcache/core/SharedCache.cpp +++ b/view/sharedcache/core/SharedCache.cpp @@ -3014,7 +3014,7 @@ extern "C" bool BNDSCViewLoadImageWithInstallName(BNSharedCache* cache, char* name) { std::string imageName = std::string(name); - BNFreeString(name); + // FIXME !!!!!!!! BNFreeString(name); if (cache->object) return cache->object->LoadImageWithInstallName(imageName); -- cgit v1.3.1