Index: tools/grokdump.py |
diff --git a/tools/grokdump.py b/tools/grokdump.py |
index 2227635d3fa6c9f6a4db75e04304eb212c20410a..a9f0cb9ddc282c5caab171f69f610720bf27bf15 100755 |
--- a/tools/grokdump.py |
+++ b/tools/grokdump.py |
@@ -1462,6 +1462,9 @@ class InspectionShell(cmd.Cmd): |
for slot in xrange(start, |
start + self.reader.PointerSize() * 10, |
self.reader.PointerSize()): |
+ if not self.reader.IsValidAddress(slot): |
+ print "Address is not contained within the minidump!" |
+ return |
maybe_address = self.reader.ReadUIntPtr(slot) |
heap_object = self.padawan.SenseObject(maybe_address) |
print "%s: %s %s" % (self.reader.FormatIntPtr(slot), |