diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2018-02-16 21:04:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-16 21:04:15 +0100 |
| commit | a464899edc3f2920604fdc368a9dc080cde6763c (patch) | |
| tree | 393d6678aeb7298b64d2c53edd201e7fbf0148df | |
| parent | 143f02d418906279ac7a52043eab37e5c6d323e5 (diff) | |
| parent | 3c2762428f2730608cf624a02660d97c9a13c152 (diff) | |
| download | miasm-a464899edc3f2920604fdc368a9dc080cde6763c.tar.gz miasm-a464899edc3f2920604fdc368a9dc080cde6763c.zip | |
Merge pull request #684 from a-vincent/fix-lib-alignment
Align the arbitrary addresses of fake library functions to multiples …
| -rw-r--r-- | miasm2/jitter/loader/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/jitter/loader/utils.py b/miasm2/jitter/loader/utils.py index 434e5f7e..a3a0ecd1 100644 --- a/miasm2/jitter/loader/utils.py +++ b/miasm2/jitter/loader/utils.py @@ -43,7 +43,7 @@ class libimp(object): log.warning("Create dummy entry for %r", name) self.fake_libs.add(name) self.name2off[name] = ad - self.libbase2lastad[ad] = ad + 0x1 + self.libbase2lastad[ad] = ad + 0x4 self.lib_imp2ad[ad] = {} self.lib_imp2dstad[ad] = {} self.libbase_ad += 0x1000 @@ -67,7 +67,7 @@ class libimp(object): return self.lib_imp2ad[libad][imp_ord_or_name] # log.debug('new imp %s %s' % (imp_ord_or_name, dst_ad)) ad = self.libbase2lastad[libad] - self.libbase2lastad[libad] += 0x11 # arbitrary + self.libbase2lastad[libad] += 0x10 # arbitrary self.lib_imp2ad[libad][imp_ord_or_name] = ad name_inv = dict([(x[1], x[0]) for x in self.name2off.items()]) |