If either the page is not readable OR unknown, bail

pull/17/head
Zach Riggle 11 years ago
parent 68c253cead
commit c4f2a6ea4d

@ -55,7 +55,7 @@ def enhance(value, code = True):
# If it's not in a page we know about, try to dereference
# it anyway just to test.
can_read = True
if not page and None == pwndbg.memory.peek(value):
if not page or None == pwndbg.memory.peek(value):
can_read = False
if not can_read:

Loading…
Cancel
Save