From 486a019282443ae5429b3c42ae132fe11f4f017f Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Wed, 8 Dec 2021 21:43:12 -0500 Subject: Fix a bunch of core function calls with bad args --- python/callingconvention.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'python/callingconvention.py') diff --git a/python/callingconvention.py b/python/callingconvention.py index 8558ca96..89040119 100644 --- a/python/callingconvention.py +++ b/python/callingconvention.py @@ -100,7 +100,7 @@ class CallingConvention: arch = self.arch for i in range(0, count.value): result.append(arch.get_reg_name(regs[i])) - core.BNFreeRegisterList(regs, count.value) + core.BNFreeRegisterList(regs) self.__dict__["caller_saved_regs"] = result count = ctypes.c_ulonglong() @@ -110,7 +110,7 @@ class CallingConvention: arch = self.arch for i in range(0, count.value): result.append(arch.get_reg_name(regs[i])) - core.BNFreeRegisterList(regs, count.value) + core.BNFreeRegisterList(regs) self.__dict__["callee_saved_regs"] = result count = ctypes.c_ulonglong() @@ -120,7 +120,7 @@ class CallingConvention: arch = self.arch for i in range(0, count.value): result.append(arch.get_reg_name(regs[i])) - core.BNFreeRegisterList(regs, count.value) + core.BNFreeRegisterList(regs) self.__dict__["int_arg_regs"] = result count = ctypes.c_ulonglong() @@ -130,7 +130,7 @@ class CallingConvention: arch = self.arch for i in range(0, count.value): result.append(arch.get_reg_name(regs[i])) - core.BNFreeRegisterList(regs, count.value) + core.BNFreeRegisterList(regs) self.__dict__["float_arg_regs"] = result reg = core.BNGetIntegerReturnValueRegister(_handle) @@ -164,7 +164,7 @@ class CallingConvention: arch = self.arch for i in range(0, count.value): result.append(arch.get_reg_name(regs[i])) - core.BNFreeRegisterList(regs, count.value) + core.BNFreeRegisterList(regs) self.__dict__["implicitly_defined_regs"] = result assert _handle is not None self.handle = _handle -- cgit v1.3.1