Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit 9f4bae4

Browse files
committed
Update valid pointer detecting logic
Need to consider the case when deref_ptr(reg_data) == 0
1 parent af6f726 commit 9f4bae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TWindbg/context.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def print_general_regs(self):
120120
pykd.dprint(reg_color(reg_str), dml=True)
121121

122122
# if reg_data is a valid virtual address and is able to be dereferenced, print it with print_ptrs(), or else just print it directly
123-
if pykd.isValid(reg_data) and deref_ptr(reg_data):
123+
if pykd.isValid(reg_data) and ( deref_ptr(reg_data) != None ):
124124
self.print_ptrs(reg_data)
125125
else:
126126
pykd.dprintln("{:#x}".format(reg_data))

0 commit comments

Comments
 (0)