diff options
| author | TreXito <81475944+TreXito@users.noreply.github.com> | 2026-11-23 15:41:05 +0000 |
|---|---|---|
| committer | TreXito <81475944+TreXito@users.noreply.github.com> | 2026-11-23 15:41:05 +0000 |
| commit | c6f15b16283081c72123e61ca08cf5eb83e301e2 (patch) | |
| tree | 09bd2d35fc70aaebf246518f1b6c985495f98312 /runtime/src/thread_stacks.cpp | |
| parent | dfcc046b4f57b8074cfc3c6e3ab457c6d2885725 (diff) | |
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>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions