about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2016-05-10 15:43:24 +0200
committerserpilliere <serpilliere@users.noreply.github.com>2016-05-10 15:43:24 +0200
commit9815a1c01745143cceda9125e04b8d1d7b1d39fc (patch)
tree088b24400b2a03a462dbde1622cdca8df19ca3a8
parentf6aecc413205b49b8ff2cb4fa7b5b9c3cd11dad8 (diff)
parenteda381e3fdb5d194831bcaa73367bf3099e857b0 (diff)
downloadmiasm-9815a1c01745143cceda9125e04b8d1d7b1d39fc.tar.gz
miasm-9815a1c01745143cceda9125e04b8d1d7b1d39fc.zip
Merge pull request #368 from commial/fix-typo
Fix typo
-rw-r--r--miasm2/jitter/loader/pe.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/jitter/loader/pe.py b/miasm2/jitter/loader/pe.py
index 2d80c8df..bb6740af 100644
--- a/miasm2/jitter/loader/pe.py
+++ b/miasm2/jitter/loader/pe.py
@@ -287,7 +287,7 @@ def vm2pe(myjit, fname, libs=None, e_orig=None,
         if added_funcs is not None:
             # name_inv = dict([(x[1], x[0]) for x in libs.name2off.items()])
 
-            for addr, funcaddr in added_func:
+            for addr, funcaddr in added_funcs:
                 libbase, dllname = libs.fad2info[funcaddr]
                 libs.lib_get_add_func(libbase, dllname, addr)
 
@@ -416,7 +416,6 @@ class libimp_pe(libimp):
             # Filter available addresses according to @filter_import
             all_ads = [
                 addr for addr in out_ads.keys() if filter_import(target_pe, addr)]
-            log.debug('ads: %s', map(hex, all_ads))
             if not all_ads:
                 continue
 
@@ -426,6 +425,7 @@ class libimp_pe(libimp):
                 if x not in [0,  None]:
                     break
             all_ads = all_ads[i:]
+            log.debug('ads: %s', map(hex, all_ads))
 
             while all_ads:
                 # Find libname's Import Address Table