Skip to content

Commit a828f05

Browse files
zznopplafosse
authored andcommitted
Make binja core BASE API compatible with C
1 parent af44dc0 commit a828f05

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

basedetection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ bool BaseAddressDetection::DetectBaseAddress(BaseAddressDetectionSettings& setti
4848
settings.MaxPointersPerCluster,
4949
};
5050

51-
return BNDetectBaseAddress(m_object, bnSettings);
51+
return BNDetectBaseAddress(m_object, &bnSettings);
5252
}
5353

5454

binaryninjacore.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
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 102
40+
#define BN_CURRENT_CORE_ABI_VERSION 103
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
@@ -7732,7 +7732,7 @@ extern "C"
77327732

77337733
// Base Address Detection
77347734
BINARYNINJACOREAPI BNBaseAddressDetection* BNCreateBaseAddressDetection(BNBinaryView *view);
7735-
BINARYNINJACOREAPI bool BNDetectBaseAddress(BNBaseAddressDetection* bad, BNBaseAddressDetectionSettings& settings);
7735+
BINARYNINJACOREAPI bool BNDetectBaseAddress(BNBaseAddressDetection* bad, BNBaseAddressDetectionSettings* settings);
77367736
BINARYNINJACOREAPI size_t BNGetBaseAddressDetectionScores(BNBaseAddressDetection* bad, BNBaseAddressDetectionScore* scores, size_t count,
77377737
BNBaseAddressDetectionConfidence* confidence, uint64_t* lastTestedBaseAddress);
77387738
BINARYNINJACOREAPI BNBaseAddressDetectionReason* BNGetBaseAddressDetectionReasons(BNBaseAddressDetection* bad,

0 commit comments

Comments
 (0)