From b34ddd03f71c8637a80a264a3ea757b8295d482b Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Thu, 1 Aug 2024 17:03:39 -0400 Subject: Pass length to free flag conditions list callback and remove libc from rust api Allows language bindings like rust to free conditions lists sanely --- binaryninjacore.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'binaryninjacore.h') diff --git a/binaryninjacore.h b/binaryninjacore.h index 8dcab816..5e090d95 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -37,14 +37,14 @@ // 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 85 +#define BN_CURRENT_CORE_ABI_VERSION 86 // 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 // will require rebuilding. The minimum version is increased when there are // incompatible changes that break binary compatibility, such as changes to // existing types or functions. -#define BN_MINIMUM_CORE_ABI_VERSION 82 +#define BN_MINIMUM_CORE_ABI_VERSION 86 #ifdef __GNUC__ #ifdef BINARYNINJACORE_LIBRARY @@ -1854,7 +1854,7 @@ extern "C" uint32_t* (*getFlagsRequiredForSemanticFlagGroup)(void* ctxt, uint32_t semGroup, size_t* count); BNFlagConditionForSemanticClass* (*getFlagConditionsForSemanticFlagGroup)( void* ctxt, uint32_t semGroup, size_t* count); - void (*freeFlagConditionsForSemanticFlagGroup)(void* ctxt, BNFlagConditionForSemanticClass* conditions); + void (*freeFlagConditionsForSemanticFlagGroup)(void* ctxt, BNFlagConditionForSemanticClass* conditions, size_t count); uint32_t* (*getFlagsWrittenByFlagWriteType)(void* ctxt, uint32_t writeType, size_t* count); uint32_t (*getSemanticClassForFlagWriteType)(void* ctxt, uint32_t writeType); size_t (*getFlagWriteLowLevelIL)(void* ctxt, BNLowLevelILOperation op, size_t size, uint32_t flagWriteType, -- cgit v1.3.1