From ad71a51fef925779f5ae30b597efb9979607b693 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Mon, 19 Apr 2021 17:04:24 +0800 Subject: render non-member access to type on a new line add Python API for retrieving all type fields referenced by code change m_updatesRequired to std::atomic_bool fix potential UAF after calling AnalysisCompletionEvent::Cancel() --- binaryninjacore.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'binaryninjacore.h') diff --git a/binaryninjacore.h b/binaryninjacore.h index 0eabe6b1..41c3acc1 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -28,7 +28,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 7 +#define BN_CURRENT_CORE_ABI_VERSION 8 // 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 @@ -3416,6 +3416,9 @@ __attribute__ ((format (printf, 1, 2))) BINARYNINJACOREAPI BNTypeReferenceSource* BNGetCodeReferencesForTypeFieldsFrom(BNBinaryView* view, BNReferenceSource* addr, size_t* count); BINARYNINJACOREAPI BNTypeReferenceSource* BNGetCodeReferencesForTypeFieldsFromInRange(BNBinaryView* view, BNReferenceSource* addr, uint64_t len, size_t* count); + BINARYNINJACOREAPI uint64_t* BNGetAllFieldsReferencedByCode(BNBinaryView* view, + BNQualifiedName* type, size_t* count); + BINARYNINJACOREAPI void BNRegisterGlobalFunctionRecognizer(BNFunctionRecognizer* rec); BINARYNINJACOREAPI bool BNGetStringAtAddress(BNBinaryView* view, uint64_t addr, BNStringReference* strRef); -- cgit v1.3.1