Repository navigation
Loader: reject a delay-import descriptor with no name table - #437
Merged
ItsNotRexed merged 1 commit intoNov 22, 2026
Merged
Conversation
An IAT without an INT still holds delay thunks, not name RVAs, so eager binding has no symbol to resolve. Reject the form with a clear error. A scan of the installed x64 System32 tree found 4,620 DLLs and 17,558 delay descriptors, none with a missing INT or without dlattrRva. The test now expects the rejection.
This was referenced Nov 21, 2026
Contributor
|
Tested f6b3d3a on RTX 4090 (driver 621.14), Windows 11 26200, MSVC 19.44: pass
No game files used. AI-assisted run (Claude Code). |
Contributor
Author
|
Post-merge verification on
No game files; clean MSVC Release build. |
Contributor
|
Tested f6b3d3a on Windows 11 Pro 26200, MSVC 19.50: pass.
|
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Follow-up to #122's zero-
ImportNameTableRVAfallback.A delay-import IAT without a name table still holds delay thunks, not import names, so eager binding has no symbol to resolve. #122 treated the IAT as if it held name RVAs. A real MSVC delay IAT holds thunk VAs, and MSVC's
__delayLoadHelper2readspINTunconditionally.I scanned the installed x64
C:\Windows\System32tree with a stdlib PE32+ parser: 4,620 DLLs, 17,558 delay-import descriptors, with 0 missing an INT and 0 withoutdlattrRva. This change rejects the no-INT form with a clear error instead of parsing thunk addresses as names.Tested
Windows, Visual Studio 2022 BuildTools 17.14.60, MSVC 19.44.35229.0, CMake 4.4.4. Based on
main4abd545.ctest: 15/15 passedloader_test: 49 checks, 0 failedthe image loaded; restored, it passesAI-assisted: yes. The change, scan and tests were run locally.
Checklist
docs/design.md.Coordination
Claimed in #156. No open PR covers the delay-INT case. The change is in
pe_loader.cpp's delay-import path and one test; #122, #93, #176 and #191 are merged. CI has not started because this is a first-time fork PR and the workflows need maintainer approval.