diff options
| author | kat <kat@vector35.com> | 2024-11-04 11:53:47 -0500 |
|---|---|---|
| committer | kat <kat@vector35.com> | 2024-11-05 09:05:38 -0500 |
| commit | 963d7bc33e1957a5e041b014485d93e78a01ba7e (patch) | |
| tree | d1e37930c0572816d934dad031a7be82f712c8cd /view/sharedcache | |
| parent | 519477fbc78b1a29d752c26e7933dfe16e80d360 (diff) | |
[SharedCache] very Hotfix for 'SharedCache.load_image_with_install_name'
Diffstat (limited to 'view/sharedcache')
| -rw-r--r-- | view/sharedcache/api/python/sharedcache.py | 3 | ||||
| -rw-r--r-- | view/sharedcache/core/SharedCache.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
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); |
