diff options
| author | Mark Rowe <mark@vector35.com> | 2026-03-18 22:58:20 -0700 |
|---|---|---|
| committer | Mark Rowe <mark@vector35.com> | 2026-03-19 08:43:51 -0700 |
| commit | cbc66f931da1046b3980c2c7c6b64c2f2ac358e2 (patch) | |
| tree | 3483e6c6d37ab18c7698c5148e61f6a715a6472c /binaryninjacore.h | |
| parent | eeceddfaf7c8d2ef4a9feed5dc2abb1dcc498b76 (diff) | |
Fix operand list iterators being validated when appending new instructions
The iterators now store an offset into the operand storage, rather than
a pointer. Deferencing the iterator retrieves the value at that offset
from the IL function.
This issue existed prior to the operand list storage refactor, but
became easier to hit after that change. The separate operand list vector
is smaller and thus more likely to reallocate when a new instruction is
appended.
Diffstat (limited to 'binaryninjacore.h')
| -rw-r--r-- | binaryninjacore.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h index 20fe50e8..6404268c 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 160 +#define BN_CURRENT_CORE_ABI_VERSION 161 // 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 160 +#define BN_MINIMUM_CORE_ABI_VERSION 161 #ifdef __GNUC__ #ifdef BINARYNINJACORE_LIBRARY @@ -6445,7 +6445,7 @@ extern "C" BINARYNINJACOREAPI uint64_t* BNLowLevelILGetOperandList( BNLowLevelILFunction* func, size_t expr, size_t operand, size_t* count); BINARYNINJACOREAPI void BNLowLevelILFreeOperandList(uint64_t* operands); - BINARYNINJACOREAPI const uint64_t* BNLowLevelILGetOperandPointer( + BINARYNINJACOREAPI uint64_t BNLowLevelILGetOperand( BNLowLevelILFunction* func, size_t offset); BINARYNINJACOREAPI size_t BNCacheLowLevelILPossibleValueSet(BNLowLevelILFunction* func, BNPossibleValueSet* pvs); @@ -6604,7 +6604,7 @@ extern "C" BINARYNINJACOREAPI uint64_t* BNMediumLevelILGetOperandList( BNMediumLevelILFunction* func, size_t expr, size_t operand, size_t* count); BINARYNINJACOREAPI void BNMediumLevelILFreeOperandList(uint64_t* operands); - BINARYNINJACOREAPI const uint64_t* BNMediumLevelILGetOperandPointer( + BINARYNINJACOREAPI uint64_t BNMediumLevelILGetOperand( BNMediumLevelILFunction* func, size_t offset); BINARYNINJACOREAPI size_t BNCacheMediumLevelILPossibleValueSet(BNMediumLevelILFunction* func, BNPossibleValueSet* pvs); @@ -6767,7 +6767,7 @@ extern "C" BINARYNINJACOREAPI uint64_t* BNHighLevelILGetOperandList( BNHighLevelILFunction* func, size_t expr, size_t operand, size_t* count); BINARYNINJACOREAPI void BNHighLevelILFreeOperandList(uint64_t* operands); - BINARYNINJACOREAPI const uint64_t* BNHighLevelILGetOperandPointer( + BINARYNINJACOREAPI uint64_t BNHighLevelILGetOperand( BNHighLevelILFunction* func, size_t offset); BINARYNINJACOREAPI size_t BNCacheHighLevelILPossibleValueSet(BNHighLevelILFunction* func, BNPossibleValueSet* pvs); |
