You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwndbg/tests/library/qemu_system/tests/test_callstack.py

12 lines
290 B
Python

from __future__ import annotations
import pwndbg.aglib.memory
import pwndbg.aglib.stack
def test_callstack_readable():
addresses = pwndbg.aglib.stack.callstack()
assert len(addresses) > 0
assert all(pwndbg.aglib.memory.is_readable_address(address) for address in addresses)