diff options
| author | Glenn Smith <glenn@vector35.com> | 2021-12-08 21:43:12 -0500 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2022-01-13 15:56:38 -0500 |
| commit | 486a019282443ae5429b3c42ae132fe11f4f017f (patch) | |
| tree | c04bfd26989e1918f0bb92c9175be758c6966890 /python/callingconvention.py | |
| parent | 0444f19299b05c0e9feada89c9ef487e59b6cfcc (diff) | |
Fix a bunch of core function calls with bad args
Diffstat (limited to 'python/callingconvention.py')
| -rw-r--r-- | python/callingconvention.py | 10 |
1 files changed, 5 insertions, 5 deletions
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 |
