From 46e41db0a8a5584466fb06f669b9e1ad887bf684 Mon Sep 17 00:00:00 2001 From: Valentin Lenhart <513541+vlenhart@users.noreply.github.com> Date: Sun, 17 Nov 2024 13:56:01 +0100 Subject: [PATCH] patterns/pe: Use appropriate pointer for first section placement (#300) --- patterns/pe.hexpat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patterns/pe.hexpat b/patterns/pe.hexpat index 16bcff5a..d9510eab 100644 --- a/patterns/pe.hexpat +++ b/patterns/pe.hexpat @@ -1106,7 +1106,7 @@ struct Section { currentSectionIndex += 1; // Make the current section index the next section's index } [[name(sectionsTable[currentSectionIndex-1].name)]]; -Section sections[coffHeader.numberOfSections] @ coffHeader.optionalHeader.sizeOfHeaders; +Section sections[coffHeader.numberOfSections] @ sectionsTable[0].ptrRawData; // Symbol & String Tables enum SectionNumberType : s16 {