From aa9145fca636c2df92e333eb977e548ebe922971 Mon Sep 17 00:00:00 2001 From: Camille Mougey Date: Thu, 18 Dec 2014 21:05:54 +0100 Subject: Analysis: Update vm_loads calls, avoid reimplemeting vm_load_pe_libs --- miasm2/analysis/binary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'miasm2/analysis/binary.py') 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: -- cgit 1.4.1