Skip to content

Commit

Permalink
patterns/pe: Use appropriate pointer for first section placement (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
vlenhart authored Nov 17, 2024
1 parent c67dc84 commit 46e41db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patterns/pe.hexpat
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 46e41db

Please sign in to comment.