From 648c7f014e25a2944ee40891000fb43031182e51 Mon Sep 17 00:00:00 2001 From: Disconnect3d Date: Tue, 14 Sep 2021 12:12:56 +0200 Subject: [PATCH] Fix heap unprinted messages --- pwndbg/commands/heap.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pwndbg/commands/heap.py b/pwndbg/commands/heap.py index 079d89180..2bd1d7746 100755 --- a/pwndbg/commands/heap.py +++ b/pwndbg/commands/heap.py @@ -693,11 +693,11 @@ def try_free(addr): free_hook = pwndbg.symbol.address('__free_hook') if free_hook is not None: if pwndbg.memory.pvoid(free_hook) != 0: - message.success('__libc_free: will execute __free_hook') + print(message.success('__libc_free: will execute __free_hook')) # free(0) has no effect if addr == 0: - message.success('__libc_free: addr is 0, nothing to do') + print(message.success('__libc_free: addr is 0, nothing to do')) return # constants @@ -994,7 +994,7 @@ def try_free(addr): #is mapped else: - message.notice('Doing munmap_chunk') + print(message.notice('Doing munmap_chunk')) finalize(errors_found, returned_before_error)