diff options
| author | Mason Reed <mason@vector35.com> | 2024-08-01 14:45:39 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2024-12-14 13:13:37 -0500 |
| commit | 121c16592476754800b00a3b51595f4799944d04 (patch) | |
| tree | b1f9556704ff169bca8a66be0a0faa448e5e9ecf /binaryninjaapi.h | |
| parent | 487fa4b240ae2c2d5a712dd6e00071f8de57d0fc (diff) | |
Pass length to free register list callback
Allows language bindings like rust to free register lists sanely
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 4d759a17..c857919c 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -7940,7 +7940,7 @@ namespace BinaryNinja { static size_t GetFlagConditionLowLevelILCallback( void* ctxt, BNLowLevelILFlagCondition cond, uint32_t semClass, BNLowLevelILFunction* il); static size_t GetSemanticFlagGroupLowLevelILCallback(void* ctxt, uint32_t semGroup, BNLowLevelILFunction* il); - static void FreeRegisterListCallback(void* ctxt, uint32_t* regs); + static void FreeRegisterListCallback(void* ctxt, uint32_t* regs, size_t len); static void GetRegisterInfoCallback(void* ctxt, uint32_t reg, BNRegisterInfo* result); static uint32_t GetStackPointerRegisterCallback(void* ctxt); static uint32_t GetLinkRegisterCallback(void* ctxt); @@ -15026,7 +15026,7 @@ namespace BinaryNinja { static uint32_t* GetCalleeSavedRegistersCallback(void* ctxt, size_t* count); static uint32_t* GetIntegerArgumentRegistersCallback(void* ctxt, size_t* count); static uint32_t* GetFloatArgumentRegistersCallback(void* ctxt, size_t* count); - static void FreeRegisterListCallback(void* ctxt, uint32_t* regs); + static void FreeRegisterListCallback(void* ctxt, uint32_t* regs, size_t len); static bool AreArgumentRegistersSharedIndexCallback(void* ctxt); static bool AreArgumentRegistersUsedForVarArgsCallback(void* ctxt); |
