From 668e53f5279cfb86b75d852061d3b32b44b69408 Mon Sep 17 00:00:00 2001 From: Disconnect3d Date: Fri, 18 Jun 2021 13:28:30 +0200 Subject: [PATCH] Fix xinfo used with symbols that are function pointers --- pwndbg/commands/xinfo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pwndbg/commands/xinfo.py b/pwndbg/commands/xinfo.py index 7b8d584e6..1f96e57f1 100644 --- a/pwndbg/commands/xinfo.py +++ b/pwndbg/commands/xinfo.py @@ -96,6 +96,7 @@ def xinfo_default(page, addr): @pwndbg.commands.ArgparsedCommand(parser) @pwndbg.commands.OnlyWhenRunning def xinfo(address=None): + address = address.cast(pwndbg.typeinfo.pvoid) # Fixes issues with function ptrs (xinfo malloc) addr = int(address) addr &= pwndbg.arch.ptrmask