Commit Graph

5 Commits

Author SHA1 Message Date
0718a8a9ac tests: expect an unmatched --dll to be refused in the documented JSON case (FAIL-FAST-SELECTORS)
The test came with #848, before this selector policy. Its valid-selector checks are unchanged.
2026-11-25 20:33:35 +01:00
a8e334e377 Reject unmatched --import/--dll selectors in import_fail_fast 2026-11-25 20:33:34 +01:00
ea0b6bbe40 docs: restore exe_fail_fast.md for current main and extend import_fail_fast tests (DOC-EXE-FAIL-FAST) 2026-11-24 21:07:39 +01:00
14dc0b8e72 import_fail_fast: the summary line says how many imports are named, not only how many are called
On the 1.0.2.1 image it now reads "515 of 587 import(s) called directly, ...": the 72 imports with no direct call
site were the first question a tester asked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 18:25:21 +00:00
c6f15b1628 RT-5: import_fail_fast.py lists where the retail executable stops itself on an import's result
From the file alone, per import: the call sites that test the returned value and branch to int3, ud2,
int 29h or a call that does not return, with the value that takes that side. Call sites come from
import_call_sites.py's thunk calls plus `call [rip+slot]` for the api-ms-win-* imports; the result is
tracked through mov/movzx/movsx copies and cdqe, and each side is followed through up to two jumps.

On the retail 1.0.2.1 executable: 515 imports called, 27 with a fatal result check, 78 sites.
docs/exe_fail_fast.md groups them by how main binds each import: XMemVirtualAlloc stops on NULL at 14
of its 23 sites, and the unbound xmem physical-page imports stop on the default return of 0 at 8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:41:05 +00:00