5 Commits
Author SHA1 Message Date
roboterspinne 2f7381f9ea test(allocator): check pe_import_first's malformed images in memory
On Windows with Defender at its defaults, opening the freshly written
optional-header-incomplete-import-entry image stalled for up to about
10 s and timed the test out. MoveImportFirst throws before it writes to
the image, and MoveImportFirstInFile writes the file only after
MoveImportFirst returns, so the malformed-image cases need no file
round trip. Check them on a copy of the bytes and keep the
missing-import case on disk for the unchanged-file path.
2026-10-31 17:36:51 +01: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 <[email protected]>
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