patterns/pe: Fixed off by one error in coff pattern (#299)

This commit is contained in:
Valentin Lenhart
2024-11-17 13:55:30 +01:00
committed by GitHub
parent 323898d083
commit c67dc84911

View File

@@ -164,7 +164,10 @@ bitfield SectionFlags {
};
fn format_alignment(u8 alignment) {
return 1 << alignment;
if(alignment > 0) {
return 1 << (alignment - 1);
}
return alignment;
};
struct Relocations {