fix(unpacker): refine layout validation and diagnostics

This commit is contained in:
bfloat16
2026-08-11 11:42:12 +08:00
parent 67178d34af
commit a89900a812
7 changed files with 393 additions and 105 deletions
+5 -1
View File
@@ -8,7 +8,8 @@ committed.
## What to put here
Place protected inputs directly in this folder:
Place protected inputs in this folder, either directly or grouped in
subdirectories:
- `*.exe` — Crackproof-protected executables (PE32 or PE32+)
- `*.dll` — Crackproof-protected DLLs (native or managed)
@@ -19,6 +20,9 @@ keeping the exact `._` suffix on the full file name. The test splices it the
same way the CLI does; without it the loader stub alone is meaningless and the
splice / export-overlay / TLS-restore code is never exercised.
The corpus scan is recursive and skips directories named `unpack`, matching the
CLI's output-directory rule.
Optionally, place a **golden** next to each input — the known-good unpacked
output, named `<base>.golden.<ext>`: