summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Miller <brandon@vector35.com>2026-04-08 15:13:22 -0400
committerBrandon Miller <brandon@vector35.com>2026-04-08 15:13:22 -0400
commit24eabc032f6450001bd799b5ec2dc368467b773a (patch)
treece4cb77a0952bbcc8c334da2221d6bbfbbd0101c
parent0626b0a8b707094ba9129ba65dc86e016c9cab71 (diff)
Fix crash with native architecture hooks
-rw-r--r--architecture.cpp2
-rw-r--r--binaryninjacore.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/architecture.cpp b/architecture.cpp
index acc47318..8bb60129 100644
--- a/architecture.cpp
+++ b/architecture.cpp
@@ -483,7 +483,7 @@ FunctionLifterContext::FunctionLifterContext(LowLevelILFunction* func, BNFunctio
m_blocks.reserve(context->basicBlockCount);
for (size_t i = 0; i < context->basicBlockCount; i++)
{
- m_blocks.emplace_back(new BasicBlock(context->basicBlocks[i]));
+ m_blocks.emplace_back(new BasicBlock(BNNewBasicBlockReference(context->basicBlocks[i])));
}
for (size_t i = 0; i < context->noReturnCallsCount; i++)
diff --git a/binaryninjacore.h b/binaryninjacore.h
index 519a9400..2cd8df31 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 163
+#define BN_CURRENT_CORE_ABI_VERSION 164
// 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 163
+#define BN_MINIMUM_CORE_ABI_VERSION 164
#ifdef __GNUC__
#ifdef BINARYNINJACORE_LIBRARY