about summary refs log tree commit diff stats
path: root/miasm2/jitter/loader/pe.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2016-05-10 14:45:27 +0200
committerAjax <commial@gmail.com>2016-05-10 14:45:27 +0200
commit585b74321c3ee60c13c1f99c80fd5dadb1e5fb5a (patch)
tree55702f22936938122f9d708d847f5f6a26808538 /miasm2/jitter/loader/pe.py
parentf6aecc413205b49b8ff2cb4fa7b5b9c3cd11dad8 (diff)
downloadmiasm-585b74321c3ee60c13c1f99c80fd5dadb1e5fb5a.tar.gz
miasm-585b74321c3ee60c13c1f99c80fd5dadb1e5fb5a.zip
LoaderPE: move log, cause 'hex' call can fail on None
Diffstat (limited to 'miasm2/jitter/loader/pe.py')
-rw-r--r--miasm2/jitter/loader/pe.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/jitter/loader/pe.py b/miasm2/jitter/loader/pe.py
index 2d80c8df..1e21fdd7 100644
--- a/miasm2/jitter/loader/pe.py
+++ b/miasm2/jitter/loader/pe.py
@@ -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