Skip to content

Commit

Permalink
fix pointertypes heuritics
Browse files Browse the repository at this point in the history
  • Loading branch information
trolldbois committed Jan 25, 2016
1 parent f645fcf commit de6032c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions haystack/allocators/heapwalker.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ def get_heap_walker(self, mapping):
raise TypeError('Feed me a IMemoryMapping object')
if not self._heap_walkers_dict:
self.list_heap_walkers()
# BUG FIXME reverse
if mapping.start not in self._heap_walkers_dict:
raise ValueError('mapping not used as a heap')
walker = self._heap_walkers_dict[mapping.start]
return walker

Expand Down

0 comments on commit de6032c

Please sign in to comment.