summaryrefslogtreecommitdiff
path: root/binaryninjacore.h
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2024-08-01 14:45:39 -0400
committerMason Reed <mason@vector35.com>2024-12-14 13:13:37 -0500
commit121c16592476754800b00a3b51595f4799944d04 (patch)
treeb1f9556704ff169bca8a66be0a0faa448e5e9ecf /binaryninjacore.h
parent487fa4b240ae2c2d5a712dd6e00071f8de57d0fc (diff)
Pass length to free register list callback
Allows language bindings like rust to free register lists sanely
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index da068fbe..8dcab816 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -1862,7 +1862,7 @@ extern "C"
size_t (*getFlagConditionLowLevelIL)(
void* ctxt, BNLowLevelILFlagCondition cond, uint32_t semClass, BNLowLevelILFunction* il);
size_t (*getSemanticFlagGroupLowLevelIL)(void* ctxt, uint32_t semGroup, BNLowLevelILFunction* il);
- void (*freeRegisterList)(void* ctxt, uint32_t* regs);
+ void (*freeRegisterList)(void* ctxt, uint32_t* regs, size_t count);
void (*getRegisterInfo)(void* ctxt, uint32_t reg, BNRegisterInfo* result);
uint32_t (*getStackPointerRegister)(void* ctxt);
uint32_t (*getLinkRegister)(void* ctxt);
@@ -2541,7 +2541,7 @@ extern "C"
uint32_t* (*getCalleeSavedRegisters)(void* ctxt, size_t* count);
uint32_t* (*getIntegerArgumentRegisters)(void* ctxt, size_t* count);
uint32_t* (*getFloatArgumentRegisters)(void* ctxt, size_t* count);
- void (*freeRegisterList)(void* ctxt, uint32_t* regs);
+ void (*freeRegisterList)(void* ctxt, uint32_t* regs, size_t len);
bool (*areArgumentRegistersSharedIndex)(void* ctxt);
bool (*isStackReservedForArgumentRegisters)(void* ctxt);