about summary refs log tree commit diff stats
path: root/miasm2/analysis/binary.py
diff options
context:
space:
mode:
authorCamille Mougey <camille.mougey@cea.fr>2014-12-18 21:05:54 +0100
committerCamille Mougey <camille.mougey@cea.fr>2014-12-20 17:44:23 +0100
commitaa9145fca636c2df92e333eb977e548ebe922971 (patch)
treeb8957182b02ce79b0d537153fcdfd1c3c3d6dc8c /miasm2/analysis/binary.py
parent115e7529d4c33686e294b9cc8099ea92eea815d9 (diff)
downloadmiasm-aa9145fca636c2df92e333eb977e548ebe922971.tar.gz
miasm-aa9145fca636c2df92e333eb977e548ebe922971.zip
Analysis: Update vm_loads calls, avoid reimplemeting vm_load_pe_libs
Diffstat (limited to 'miasm2/analysis/binary.py')
-rw-r--r--miasm2/analysis/binary.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/analysis/binary.py b/miasm2/analysis/binary.py
index a46a252c..17c87761 100644
--- a/miasm2/analysis/binary.py
+++ b/miasm2/analysis/binary.py
@@ -122,7 +122,7 @@ class ContainerPE(Container):
         # Build executable instance
         try:
             if vm is not None:
-                self._executable = vm_load_pe(vm, filename)
+                self._executable = vm_load_pe(vm, data)
             else:
                 self._executable = pe_init.PE(data)
         except Exception, error:
@@ -156,7 +156,7 @@ class ContainerELF(Container):
         # Build executable instance
         try:
             if vm is not None:
-                self._executable = vm_load_elf(vm, filename)
+                self._executable = vm_load_elf(vm, data)
             else:
                 self._executable = elf_init.ELF(data)
         except Exception, error: