patterns/pe: Use appropriate pointer for first section placement (#300)

This commit is contained in:
Valentin Lenhart
2024-11-17 13:56:01 +01:00
committed by GitHub
parent c67dc84911
commit 46e41db0a8

View File

@@ -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 {