Skip to content

Commit

Permalink
im not sure I understand how TU could work.
Browse files Browse the repository at this point in the history
  • Loading branch information
trolldbois committed Oct 8, 2015
1 parent 63d9e19 commit 07692ad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions haystack/reverse/pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
from haystack import dump_loader
from haystack.reverse import config
from haystack.reverse import utils
from haystack.reverse import matchers
from haystack.reverse import searchers
import haystack.reverse.matchers

__author__ = "Loic Jaquemet"
__copyright__ = "Copyright (C) 2012 Loic Jaquemet"
Expand Down Expand Up @@ -256,6 +256,7 @@ def __init__(self, memory_handler, pathname='[heap]'):
self.addressCache = {}
self.sig = None
self._word_size = memory_handler.get_target_platform().get_word_size()
self._feedback = searchers.NoFeedback()
self._get_mapping()
self._load()

Expand All @@ -277,7 +278,9 @@ def _load(self):
log.info(
"Signature has to be calculated for %s. It's gonna take a while." %
(self.name))
pointerSearcher = haystack.reverse.matchers.PointerSearcher(self.mmap)
matcher = matchers.PointerSearcher(self.memory_handler)
pointerSearcher = searchers.WordAlignedSearcher(self.mmap, matcher, self.feedback, self._word_size)
#pointerSearcher = matchers.PointerSearcher(self.mmap)
sig = []
# save first offset
last = self.mmap.start
Expand Down

0 comments on commit 07692ad

Please sign in to comment.