Repository navigation
fix(dotnet): keep non-CIL method implementations unknown - #675
Closed
rudycelekli wants to merge 2 commits into
Closed
rudycelekli wants to merge 2 commits into
rudycelekli wants to merge 2 commits into
Conversation
added 2 commits
October 6, 2026 02:10
Signed-off-by: RudyCelekli <[email protected]>
Signed-off-by: RudyCelekli <[email protected]>
morluto
approved these changes
Oct 6, 2026
morluto
left a comment
Owner
There was a problem hiding this comment.
Approve: non-CIL impl (codeType/managed bits, PInvokeImpl) now returns partial with retained RVA instead of fabricating IL/hashes/edges; RVA-zero absent preserved. Unit + provider tests across CIL/partial/absent, plus honest packaged-fixture repair. Checks green.
Owner
|
Superseded by #705, which cherry-picks this change (plus 13 sibling fixes) onto current main with conflict resolution and regenerated catalogs. Closing to keep one reviewable merge unit. |
Owner
|
Thanks, @rudycelekli, for your work on “fix(dotnet): keep non-CIL method implementations unknown.” I appreciate your contribution to REA. |
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.
Summary
Honor MethodDef implementation metadata before interpreting a nonzero RVA as managed CIL. Native, runtime, unmanaged, and P/Invoke implementations do not establish that the bytes at that address have an admitted CIL representation.
The current reader can produce managed instructions, IL hashes and call/field edges from unrelated implementation bytes that happen to resemble a tiny IL header. This change retains the original RVA and reports partial body coverage with an explicit CIL-unavailable reason. It emits no invented managed anchors. Zero-RVA bodies remain proven absent, and ordinary managed IL decoding is unchanged.
Verification
npm run test:focused -- src/dotnet/ManagedMemberInspector.test.ts src/dotnet/ManagedCilDecoding.test.ts src/dotnet/ManagedNativeBoundaryInspector.test.ts tests/boundary/providers/managed/managedStaticProvider.test.ts— 24 tests passed.npm run check— all five required tasks passed.npm run verify:managed— 11 static source-owned conformance scenarios passed; optional operator manifest and ILSpy oracle were not configured.AI assistance was used for investigation, implementation and testing. The patch was independently reviewed before publication.
CI follow-up
The package consumer fixture previously combined a P/Invoke flag with a CIL body on its only
Mainmethod, then reused that impossible combination as a reconstruction input. Both package integration lanes correctly exposed this fixture drift once this fix stopped fabricating CIL hashes. The fixture now has an ordinary CILMainand a separate zero-RVA P/Invoke declaration, with its ImplMap pointing at the second method. All existing managed reconstruction, native boundary, native verification and application graph checks remain exercised.On repair head
d0af4df69bf3d6c67defbe16fae616067969091f,npm run verify:packagecompleted the installed-tarball CLI/MCP consumer roundtrip successfully on this macOS host, and all fivenpm run checktasks passed. The repaired head subsequently completed all 18 hosted checks successfully, including both Ubuntu and macOS package integration lanes.