From 585b74321c3ee60c13c1f99c80fd5dadb1e5fb5a Mon Sep 17 00:00:00 2001 From: Ajax Date: Tue, 10 May 2016 14:45:27 +0200 Subject: LoaderPE: move log, cause 'hex' call can fail on None --- miasm2/jitter/loader/pe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miasm2/jitter/loader/pe.py') 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 -- cgit 1.4.1