diff --git a/pwndbg/stack.py b/pwndbg/stack.py index e626a13ba..1c77f622f 100644 --- a/pwndbg/stack.py +++ b/pwndbg/stack.py @@ -46,6 +46,9 @@ def find_upper_stack_boundary(addr, max_pages=1024): if not pwndbg.abi.linux: return addr + pwndbg.memory.PAGE_SIZE + # We don't want to find ELF magic here. We reuse the find_elf_magic func + # as it traverses 4kB pages and can find the boundary for us + # (in other words, we expect the ELF magic to not be present on the stack) return pwndbg.elf.find_elf_magic(addr, max_pages=max_pages, ret_addr_anyway=True) diff --git a/pwndbg/vmmap.py b/pwndbg/vmmap.py index 91c469b50..54b579e97 100644 --- a/pwndbg/vmmap.py +++ b/pwndbg/vmmap.py @@ -33,7 +33,6 @@ explored_pages = [] # List of custom pages that can be managed manually by vmmap_* commands family custom_pages = [] -@pwndbg.events.new_objfile @pwndbg.memoize.reset_on_stop def get(): if not pwndbg.proc.alive: