Skip to content

Commit

Permalink
fast fail on incomplete Minidump. Fixes #30
Browse files Browse the repository at this point in the history
  • Loading branch information
trolldbois committed Mar 13, 2016
1 parent 2acc1a1 commit e3554f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions haystack/mappings/minidump.py
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,10 @@ def _init_mappings(self, construct_data):
elif directory.StreamType == 'MemoryInfoListStream':
## absent ?
print directory
## FAST FAIL
if len(maps) == 0:
raise TypeError('This Minidump does not contain Memory64ListStream memory dump. ' +
'Please use full memory dump options in the memory acquisition tool.')
# target
cpu = os_name = None
if self.os_name is None or self.cpu is None:
Expand Down

0 comments on commit e3554f8

Please sign in to comment.