Fix xinfo used with symbols that are function pointers

pull/931/head
Disconnect3d 5 years ago committed by GitHub
parent 8db8f4d25a
commit 668e53f527
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save