| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…rce that is an assembly ref (dotnet#112810) When getting a resource where `ResourceResolve` handler returns an assembly with a manifest resource that is an assembly ref, we incorrectly resolved the reference on the original assembly instead of the assembly returned by the handler and then also looked for the resource on the original assembly again instead of using the referenced assembly. This change includes a test for this case using IL. The manifest resource file (as opposed to assembly ref) case is already covered in libraries tests.
There was a problem hiding this comment.
Copilot reviewed 1 out of 6 changed files in this pull request and generated no comments.
Files not reviewed (5)src/tests/Loader/ResourceResolve/ResourceResolve.cs:41
Span<byte> expectedBytes = new byte[expected.Length];
src/tests/Loader/ResourceResolve/ResourceResolve.cs:43
Span<byte> streamBytes = new byte[stream.Length];
Sorry, something went wrong.
There was a problem hiding this comment.
lgtm. please get a code review. we will take for consideration in 9.0.x
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Backport of #112810
Fixes #111537
Customer Impact
Reported in #111537 - Stack overflow on resolving a resource via ResourceResolve for an assembly with an assembly ref manifest resource.
When getting a resource where ResourceResolve handler returns an assembly with a manifest resource that is an assembly ref, we incorrectly resolved the reference on the original assembly instead of the assembly returned by the handler and then also looked for the resource on the original assembly again instead of using the referenced assembly.
Regression
Regression in .NET 9 from eae1542.
Testing
Added automated test for manifest resource assembly ref. The manifest resource file (as opposed to assembly ref) case is already covered in libraries tests.
Risk
Low.