diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2015-11-19 09:02:38 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2015-12-04 15:10:10 +0100 |
| commit | 6cfdd9b886ee589b0f812b84f81077315cc25b5b (patch) | |
| tree | 1942aa6f0bccf4b8695b3aa451c2832c450b0e04 /miasm2/jitter/loader/pe.py | |
| parent | 6a1096c544abf2747308f3c4163f2fd3ae1360dc (diff) | |
| download | miasm-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.py | 4 |
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 |