5 Commits
Author SHA1 Message Date
MarcZX10 c5a55061c3 fix(allocator): compare PE section ends without 32-bit wraparound
PeImportFirst computed the end of a section as VirtualAddress plus the
larger of VirtualSize and RawSize in 32 bits. A section that ends at or
above 4 GiB wrapped to a small value, so an RVA inside it was reported as
outside every section and MoveImportFirst threw.

Widen the sum to 64 bits before comparing.
2026-11-05 20:38:27 +00:00
Brainiac91 b729a37dd0 fix(allocator): accept minimal PE32+ import headers 2026-10-27 13:45:22 +02:00
Brainiac91 737d4dea35 fix(allocator): reject malformed import metadata in PeImportFirst
Read the Import Directory entry only when the optional header holds it and NumberOfRvaAndSizes declares it. Require every import name to end with a NUL inside the file and resolve the names after the descriptor table is bounds-checked.
2026-10-27 13:45:22 +02:00
orezraeyandClaude Opus 5.5 9cd530b7e8 fix(allocator): take pe_import_first's file as a wide path on Windows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 09:57:33 -03:00
Mehran 9824c46fe0 feat(libs): let relinked Windows games opt into mimalloc 2026-10-19 00:08:47 +03:00