From 88a574f7bf826c4e9017a61fd8d8fac7012880d4 Mon Sep 17 00:00:00 2001 From: Galen Williamson Date: Tue, 4 Feb 2025 19:31:27 -0500 Subject: Fixes `Architecture._get_stack_pointer_register` to return 0 instead of None when unimplemented to prevent ctypes error --- python/architecture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/architecture.py') diff --git a/python/architecture.py b/python/architecture.py index 01ea3166..66d3229d 100644 --- a/python/architecture.py +++ b/python/architecture.py @@ -1033,7 +1033,7 @@ class Architecture(metaclass=_ArchitectureMetaClass): def _get_stack_pointer_register(self, ctxt): if self.stack_pointer is None: - return None + return 0 try: return self._all_regs[self.stack_pointer] except KeyError: -- cgit v1.3.1