Skip to content

Commit 24eabc0

Browse files
committed
Fix crash with native architecture hooks
1 parent 0626b0a commit 24eabc0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

architecture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ FunctionLifterContext::FunctionLifterContext(LowLevelILFunction* func, BNFunctio
483483
m_blocks.reserve(context->basicBlockCount);
484484
for (size_t i = 0; i < context->basicBlockCount; i++)
485485
{
486-
m_blocks.emplace_back(new BasicBlock(context->basicBlocks[i]));
486+
m_blocks.emplace_back(new BasicBlock(BNNewBasicBlockReference(context->basicBlocks[i])));
487487
}
488488

489489
for (size_t i = 0; i < context->noReturnCallsCount; i++)

binaryninjacore.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737
// Current ABI version for linking to the core. This is incremented any time
3838
// there are changes to the API that affect linking, including new functions,
3939
// new types, or modifications to existing functions or types.
40-
#define BN_CURRENT_CORE_ABI_VERSION 163
40+
#define BN_CURRENT_CORE_ABI_VERSION 164
4141

4242
// Minimum ABI version that is supported for loading of plugins. Plugins that
4343
// are linked to an ABI version less than this will not be able to load and
4444
// will require rebuilding. The minimum version is increased when there are
4545
// incompatible changes that break binary compatibility, such as changes to
4646
// existing types or functions.
47-
#define BN_MINIMUM_CORE_ABI_VERSION 163
47+
#define BN_MINIMUM_CORE_ABI_VERSION 164
4848

4949
#ifdef __GNUC__
5050
#ifdef BINARYNINJACORE_LIBRARY

0 commit comments

Comments
 (0)