Merge pull request #49 from mancha1/hexdump

Fix bug in hexdump when called with a byte count parameter
This commit is contained in:
Long Le
2015-03-18 21:35:43 +07:00
+4 -3
View File
@@ -3276,12 +3276,13 @@ class PEDACmd(object):
if address is None:
self._missing_argument()
if count and count.startswith("/"):
if count is None:
count = 16
if not to_int(count) and count.startswith("/"):
count = to_int(count[1:])
count = count * 16 if count else None
if count is None:
count = 16
bytes = peda.dumpmem(address, address+count)
if bytes is None:
warning_msg("cannot retrieve memory content")