Skip to content

Commit bcd210a

Browse files
committed
Do not unresolve zeros
1 parent 0510e30 commit bcd210a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pwnlib/rop/rop.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ def describe(self, object):
841841
"""
842842
if isinstance(object, enums):
843843
return str(object)
844-
if isinstance(object, six.integer_types):
844+
if isinstance(object, six.integer_types) and object:
845845
return self.unresolve(object)
846846
if isinstance(object, (bytes, six.text_type)):
847847
return repr(object)

0 commit comments

Comments
 (0)