diff options
| author | Camille Mougey <commial@gmail.com> | 2023-04-24 10:19:21 +0200 |
|---|---|---|
| committer | Camille Mougey <commial@gmail.com> | 2023-04-24 10:19:21 +0200 |
| commit | 2475c946e8a606b4d5f69f0738ca334a0f429dcd (patch) | |
| tree | 85ecffefb462fa6e01796ffa503f07935153c88e | |
| parent | 49ec4bc9a90391bc796ac6940a6d9b77deb17ac9 (diff) | |
| download | miasm-2475c946e8a606b4d5f69f0738ca334a0f429dcd.tar.gz miasm-2475c946e8a606b4d5f69f0738ca334a0f429dcd.zip | |
ImpRec: fix the search to actually use the ptrsize
| -rw-r--r-- | miasm/jitter/loader/pe.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm/jitter/loader/pe.py b/miasm/jitter/loader/pe.py index 6d359a9a..69a99ee3 100644 --- a/miasm/jitter/loader/pe.py +++ b/miasm/jitter/loader/pe.py @@ -806,7 +806,7 @@ class ImpRecStrategy(object): fsm.send(None) for addr_start, page_info in self._jitter.vm.get_all_memory().items(): data = page_info["data"] - for i in range(0, page_info["size"], 4): + for i in range(0, page_info["size"], struct.calcsize(self._ptrtype)): fsm.send((data[i:i+4], addr_start + i)) # Apply to libs |