Include .reloc in section detection

Broaden the section name check to match both ".rsrc" and ".reloc" (using /. (rsrc|reloc)/i) instead of only matching "rsrc". This ensures reloc sections are counted in the resourceSectionsCounter and improves accuracy when identifying resource/relocation sections in PE parsing.
This commit is contained in:
DosX 2026-04-04 21:28:11 +03:00
commit e443ef9a2e

View file

@ -24,7 +24,7 @@ function detect() {
if (sectionToCheck.Characteristics & 0xe0000020) {
isRwxSectionPresent = true;
}
} else if (/rsrc/i.test(sectionToCheck.Name)) {
} else if (/.(rsrc|reloc)/i.test(sectionToCheck.Name)) {
resourceSectionsCounter++;
}
}