Skip to content

Commit

Permalink
small bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
trolldbois committed Jul 26, 2017
1 parent 1a03055 commit 7eb3b77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion haystack/allocators/win32/winheapwalker.py
Expand Up @@ -25,7 +25,7 @@ class WinHeapWalker(heapwalker.HeapWalker):
"""

def _init_heap(self):
log.debug('+ Heap @%0.8x size: %d # %s',self._heap_mapping.start, len(self._heap_mapping), self._heap_mapping)
log.debug('+ Heap @%0.8x size: %d # %s', self._heap_mapping.start, len(self._heap_mapping), self._heap_mapping)
# real allocations from the process pov
self._user_allocs = None
self._user_free_chunks = None
Expand Down Expand Up @@ -57,6 +57,7 @@ def get_heap_validator(self):

def __contains__(self, address):
""" Does the heap walker or its relevant segments contains this address"""
# FIXME
raise NotImplementedError('Please implement all methods')

def get_backend_allocations(self):
Expand Down
1 change: 1 addition & 0 deletions haystack/mappings/file.py
Expand Up @@ -438,6 +438,7 @@ def __init__(self, memdump):
self.size = memdump.tell()
self.memdump_name = memdump.name
memdump.seek(i)
# FIXME Why would you do that ?
memdump.close()

def __len__(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -78,7 +78,7 @@ def run(self):
'console_scripts': [
'haystack-find-heap = haystack.cliwin:find_heap',
'haystack-search = haystack.cli:search',
'haystack-show = haystack.cli:main_show',
'haystack-show = haystack.cli:show',
'haystack-live-dump = haystack.memory_dumper:main',
'haystack-live-watch = haystack.cli:live_watch',
'haystack-rekall-dump = haystack.cli:rekall_dump',
Expand Down

0 comments on commit 7eb3b77

Please sign in to comment.