From ceb7258de6498b8259abe21252305bf1851d8dd0 Mon Sep 17 00:00:00 2001 From: Alan Li <61896187+lebr0nli@users.noreply.github.com> Date: Tue, 4 Apr 2023 16:45:59 +0800 Subject: [PATCH] Fix the unused arguments of heap commands (#1659) --- pwndbg/commands/heap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwndbg/commands/heap.py b/pwndbg/commands/heap.py index 1d59ff8e2..835b948d4 100644 --- a/pwndbg/commands/heap.py +++ b/pwndbg/commands/heap.py @@ -166,7 +166,7 @@ def heap(addr=None, verbose=False, simple=False) -> None: if addr is not None: chunk = Chunk(addr) while chunk is not None: - malloc_chunk(chunk.address) + malloc_chunk(chunk.address, verbose=verbose, simple=simple) chunk = chunk.next_chunk() else: arena = allocator.thread_arena @@ -177,7 +177,7 @@ def heap(addr=None, verbose=False, simple=False) -> None: h = arena.active_heap for chunk in h: - malloc_chunk(chunk.address) + malloc_chunk(chunk.address, verbose=verbose, simple=simple) parser = argparse.ArgumentParser(