about summary refs log tree commit diff stats
path: root/miasm2/jitter/loader/pe.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2015-11-19 09:02:38 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2015-12-04 15:10:10 +0100
commit6cfdd9b886ee589b0f812b84f81077315cc25b5b (patch)
tree1942aa6f0bccf4b8695b3aa451c2832c450b0e04 /miasm2/jitter/loader/pe.py
parent6a1096c544abf2747308f3c4163f2fd3ae1360dc (diff)
downloadmiasm-6cfdd9b886ee589b0f812b84f81077315cc25b5b.tar.gz
miasm-6cfdd9b886ee589b0f812b84f81077315cc25b5b.zip
Sandbox: support additional options
Diffstat (limited to 'miasm2/jitter/loader/pe.py')
-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 fbd8b636..d23d52a3 100644
--- a/miasm2/jitter/loader/pe.py
+++ b/miasm2/jitter/loader/pe.py
@@ -446,7 +446,7 @@ class libimp_pe(libimp):
 
 
 def vm_load_pe_and_dependencies(vm, fname, name2module, runtime_lib,
-                                lib_path_base):
+                                lib_path_base, **kwargs):
     """Load a binary and all its dependencies. Returns a dictionnary containing
     the association between binaries names and it's pe object
 
@@ -477,7 +477,7 @@ def vm_load_pe_and_dependencies(vm, fname, name2module, runtime_lib,
             try:
                 with open(fname) as fstream:
                     log.info('Loading module %r', name)
-                    pe_obj = vm_load_pe(vm, fstream.read())
+                    pe_obj = vm_load_pe(vm, fstream.read(), **kwargs)
             except IOError:
                 log.warning('Cannot open %s' % fname)
                 name2module[name] = None