diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2025-11-04 19:23:44 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2025-11-04 20:48:56 -0500 |
| commit | 21324fa57b44ba77e46be4952a02484cb8c3ef5c (patch) | |
| tree | 7cb747c5c1a670ac799596e5bc645931f1f69a39 /binaryninjacore.h | |
| parent | 864374e250e87901bbbad66086abb9c0b5924022 (diff) | |
Remove indenting APIs from Logger. These are thread unsafe by design.
Loggers are not owned by a specific thread and many are used by multiple threads. The indenting APIs could not be made to be thread safe in any way as they exist, so they have been removed. The data races caused by the indenting APIs are actually an important stability issue that could cause the indentation level to go out of bounds and crash the product.
If you were using the indentation APIs, you will need to rewrite the usage to manually manage the indentation level in a thread safe way.
Diffstat (limited to 'binaryninjacore.h')
| -rw-r--r-- | binaryninjacore.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h index 0ba01542..305fc713 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 145 +#define BN_CURRENT_CORE_ABI_VERSION 146 // 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 141 +#define BN_MINIMUM_CORE_ABI_VERSION 146 #ifdef __GNUC__ #ifdef BINARYNINJACORE_LIBRARY @@ -4031,10 +4031,6 @@ extern "C" BINARYNINJACOREAPI char* BNLoggerGetName(BNLogger* logger); BINARYNINJACOREAPI size_t BNLoggerGetSessionId(BNLogger* logger); - BINARYNINJACOREAPI void BNLoggerIndent(BNLogger* logger); - BINARYNINJACOREAPI void BNLoggerDedent(BNLogger* logger); - BINARYNINJACOREAPI void BNLoggerResetIndent(BNLogger* logger); - BINARYNINJACOREAPI char* BNGetLoggerIndent(BNLogger* logger); BINARYNINJACOREAPI BNLogger* BNLogCreateLogger(const char* loggerName, size_t sessionId); BINARYNINJACOREAPI BNLogger* BNLogGetLogger(const char* loggerName, size_t sessionId); BINARYNINJACOREAPI char** BNLogGetLoggerNames(size_t* count); |
