mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-27 05:12:50 +00:00
- Check the mapping budget before anything is mapped, and map the header bytes straight from the file instead of copying them first. - Refuse bytes that are not the PE32+ headers that were parsed: the optional header magic and size, the section count, the preferred base and SizeOfHeaders must agree before anything is patched. - Write the load base into the mapped ImageBase field after relocations are applied, so a DIR64 entry aimed at that field cannot move it twice. - Describe the ImageBase rewrite as Xenora's policy, and document the zero fill past SizeOfHeaders and the stricter page rule. Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>