From 76d256e4bd6592ce0dfcbcb37eab2ff581a4ef8b Mon Sep 17 00:00:00 2001 From: Zach Riggle Date: Fri, 25 Mar 2016 09:24:54 -0700 Subject: [PATCH] Exit if address is unknown --- pwndbg/commands/windbg.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pwndbg/commands/windbg.py b/pwndbg/commands/windbg.py index 93078d7c8..07baea941 100644 --- a/pwndbg/commands/windbg.py +++ b/pwndbg/commands/windbg.py @@ -160,6 +160,9 @@ def eX(size, address, data, hex=True): """ address = pwndbg.commands.fix(address) + if address is None: + return + for i,bytestr in enumerate(data): if hex: bytestr = bytestr.rjust(size*2, '0')