diff options
Diffstat (limited to 'miasm2/analysis/binary.py')
| -rw-r--r-- | miasm2/analysis/binary.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/analysis/binary.py b/miasm2/analysis/binary.py index 21e5c356..6dfef92a 100644 --- a/miasm2/analysis/binary.py +++ b/miasm2/analysis/binary.py @@ -156,7 +156,7 @@ class ContainerPE(Container): # Build the bin_stream instance and set the entry point try: - self._bin_stream = bin_stream_pe(self._executable.virt) + self._bin_stream = bin_stream_pe(self._executable) ep_detected = self._executable.Opthdr.AddressOfEntryPoint self._entry_point = self._executable.rva2virt(ep_detected) except Exception, error: @@ -200,7 +200,7 @@ class ContainerELF(Container): # Build the bin_stream instance and set the entry point try: - self._bin_stream = bin_stream_elf(self._executable.virt) + self._bin_stream = bin_stream_elf(self._executable) self._entry_point = self._executable.Ehdr.entry + addr except Exception, error: raise ContainerParsingException('Cannot read ELF: %s' % error) |