diff options
| author | Galen Williamson <galen@vector35.com> | 2025-02-04 19:31:27 -0500 |
|---|---|---|
| committer | Galen Williamson <galen@vector35.com> | 2025-02-04 19:31:27 -0500 |
| commit | 88a574f7bf826c4e9017a61fd8d8fac7012880d4 (patch) | |
| tree | 1bcb8124283a2e2c16274f097015f554e7327d0d /python/architecture.py | |
| parent | ea55cee42413c2e8108ca2a3a985abb106e3ab41 (diff) | |
Fixes `Architecture._get_stack_pointer_register` to return 0 instead of None when unimplemented to prevent ctypes error
Diffstat (limited to 'python/architecture.py')
| -rw-r--r-- | python/architecture.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
