summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Miller <brandon@vector35.com>2025-04-21 08:11:27 -0400
committerPeter LaFosse <peter@vector35.com>2025-04-21 09:38:33 -0400
commita828f0521163bcc713b6d31bd68921e108765f05 (patch)
tree1aa2f2a496ebad96938f86d2d5b009cfbfa11265
parentaf44dc013e54bd485edc3b354a7aff3d83dccaa4 (diff)
Make binja core BASE API compatible with C
-rw-r--r--basedetection.cpp2
-rw-r--r--binaryninjacore.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/basedetection.cpp b/basedetection.cpp
index 2764e334..0b660d36 100644
--- a/basedetection.cpp
+++ b/basedetection.cpp
@@ -48,7 +48,7 @@ bool BaseAddressDetection::DetectBaseAddress(BaseAddressDetectionSettings& setti
settings.MaxPointersPerCluster,
};
- return BNDetectBaseAddress(m_object, bnSettings);
+ return BNDetectBaseAddress(m_object, &bnSettings);
}
diff --git a/binaryninjacore.h b/binaryninjacore.h
index 58b0bd1c..2b4dc07d 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 102
+#define BN_CURRENT_CORE_ABI_VERSION 103
// 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
@@ -7732,7 +7732,7 @@ extern "C"
// Base Address Detection
BINARYNINJACOREAPI BNBaseAddressDetection* BNCreateBaseAddressDetection(BNBinaryView *view);
- BINARYNINJACOREAPI bool BNDetectBaseAddress(BNBaseAddressDetection* bad, BNBaseAddressDetectionSettings& settings);
+ BINARYNINJACOREAPI bool BNDetectBaseAddress(BNBaseAddressDetection* bad, BNBaseAddressDetectionSettings* settings);
BINARYNINJACOREAPI size_t BNGetBaseAddressDetectionScores(BNBaseAddressDetection* bad, BNBaseAddressDetectionScore* scores, size_t count,
BNBaseAddressDetectionConfidence* confidence, uint64_t* lastTestedBaseAddress);
BINARYNINJACOREAPI BNBaseAddressDetectionReason* BNGetBaseAddressDetectionReasons(BNBaseAddressDetection* bad,