From 14a4c71d7715358bbe665260fa2b4209fed8d7a5 Mon Sep 17 00:00:00 2001 From: Ero Carrera Date: Mon, 26 Aug 2024 16:57:06 +0200 Subject: [PATCH] Address issue brought up in PR #385 --- pefile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pefile.py b/pefile.py index 12d2892..53d6e41 100644 --- a/pefile.py +++ b/pefile.py @@ -6294,7 +6294,7 @@ def get_memory_mapped_image(self, max_virtual_address=0x10000000, ImageBase=None self.relocate_image(ImageBase) # Collect all sections in one code block - mapped_data = self.__data__[:] + mapped_data = self.header for section in self.sections: # Miscellaneous integrity tests. # Some packer will set these to bogus values to make tools go nuts.