-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assemblies returned from AppDomain.AssemblyResolve are checked for matching strong name #101029
Labels
Comments
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov |
jkotas
added a commit
to jkotas/runtime
that referenced
this issue
Apr 15, 2024
… event This check was somehow missed during earlier cleanups that deleted strongname matching for assembly binding. Fixes dotnet#101029
Thank you for reporting this issue! |
matouskozak
pushed a commit
to matouskozak/runtime
that referenced
this issue
Apr 30, 2024
… event (dotnet#101039) This check was somehow missed during earlier cleanups that deleted strongname matching for assembly binding. Fixes dotnet#101029
Ruihan-Yin
pushed a commit
to Ruihan-Yin/runtime
that referenced
this issue
May 30, 2024
… event (dotnet#101039) This check was somehow missed during earlier cleanups that deleted strongname matching for assembly binding. Fixes dotnet#101029
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Reproduction
Make a dummy project without strong-name signing:
Then, the project to demonstrate the error:
Run the project. It should fail with:
This is expected.
Uncomment the code labeled '#1'. The code should run with output:
This is also expected, since .NET Core should ignore strong names for the purpose of assembly binding.
Re-comment that code, and now uncomment the code labeled '#2'. The code will fail with:
This is not expected—the code should run successfully as it did in the previous example.
Commentary
This code in
AppDomain::RaiseAssemblyResolveEvent
seems suspicious:runtime/src/coreclr/vm/appdomain.cpp
Lines 4533 to 4535 in fa1164c
The text was updated successfully, but these errors were encountered: