diff options
| author | Alexander Khosrowshahi <alexk@vector35.com> | 2025-06-02 17:35:28 -0400 |
|---|---|---|
| committer | Alexander Taylor <alex@vector35.com> | 2025-06-04 14:13:45 -0400 |
| commit | 368407b09eba7c5d09689ac81eaadd1645820edd (patch) | |
| tree | def58a37155744cf7ac2427a3f143efb807d1e12 /view/kernelcache/api/kernelcachecore.h | |
| parent | 9c8d4eac3dadf6273b34ba193c219de9283285b3 (diff) | |
Fix calls to BNFreeString in kernel cache API
Amends calls to BNFreeString in kernel cache API that were causing `get_macho_header_for_address`, `get_macho_header_for_image`, `get_image_name_for_address`, and `get_name_for_address` to fail.
Fixes https://github.com/Vector35/binaryninja-api/issues/6855
Diffstat (limited to 'view/kernelcache/api/kernelcachecore.h')
| -rw-r--r-- | view/kernelcache/api/kernelcachecore.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/view/kernelcache/api/kernelcachecore.h b/view/kernelcache/api/kernelcachecore.h index be274a6c..2f158131 100644 --- a/view/kernelcache/api/kernelcachecore.h +++ b/view/kernelcache/api/kernelcachecore.h @@ -106,7 +106,7 @@ extern "C" KERNELCACHE_FFI_API char** BNKCViewGetInstallNames(BNKernelCache* cache, size_t* count); - KERNELCACHE_FFI_API bool BNKCViewLoadImageWithInstallName(BNKernelCache* cache, char* name); + KERNELCACHE_FFI_API bool BNKCViewLoadImageWithInstallName(BNKernelCache* cache, const char* name); KERNELCACHE_FFI_API bool BNKCViewLoadImageContainingAddress(BNKernelCache* cache, uint64_t address); KERNELCACHE_FFI_API bool BNKCViewIsImageLoaded(BNKernelCache* cache, uint64_t address); @@ -128,7 +128,7 @@ extern "C" KERNELCACHE_FFI_API void BNKCViewFreeLoadedImages(BNKCImage* images, size_t count); KERNELCACHE_FFI_API char* BNKCViewGetImageHeaderForAddress(BNKernelCache* cache, uint64_t address); - KERNELCACHE_FFI_API char* BNKCViewGetImageHeaderForName(BNKernelCache* cache, char* name); + KERNELCACHE_FFI_API char* BNKCViewGetImageHeaderForName(BNKernelCache* cache, const char* name); #ifdef __cplusplus } |
