mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-08 13:50:20 +00:00
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.