From 7630dcd1686e56a51d71545a5ac4880410b429d5 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Thu, 9 Jan 2025 17:27:11 -0500 Subject: Add BNAllocStringWithLength API. --- binaryninjacore.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/binaryninjacore.h b/binaryninjacore.h index 5e090d95..2fe08614 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -37,7 +37,7 @@ // Current ABI version for linking to the core. This is incremented any time // there are changes to the API that affect linking, including new functions, // new types, or modifications to existing functions or types. -#define BN_CURRENT_CORE_ABI_VERSION 86 +#define BN_CURRENT_CORE_ABI_VERSION 87 // Minimum ABI version that is supported for loading of plugins. Plugins that // are linked to an ABI version less than this will not be able to load and @@ -3539,6 +3539,7 @@ extern "C" BINARYNINJACOREAPI char* BNAllocString(const char* contents); + BINARYNINJACOREAPI char* BNAllocStringWithLength(const char* contents, size_t len); BINARYNINJACOREAPI void BNFreeString(char* str); BINARYNINJACOREAPI char** BNAllocStringList(const char** contents, size_t size); BINARYNINJACOREAPI void BNFreeStringList(char** strs, size_t count); -- cgit v1.3.1