Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Don't call AssemblyResolve event for CoreLib resources - #13003

Merged
kouvel merged 1 commit into
dotnet:release/2.0.0from
kouvel:LoadFromFixRel20
Aug 17, 2017
Merged

kouvel merged 1 commit into
dotnet:release/2.0.0from
kouvel:LoadFromFixRel20

Conversation

@kouvel

@kouvel kouvel commented Jul 24, 2017

Copy link
Copy Markdown

Port of #12999 to release/2.0.0

Part of fix for #12668:

  • CoreLib resource lookup should not raise the AssemblyResolve event because a misbehaving handler could cause an infinite recursion check and fail-fast to be triggered when the resource is not found, as the issue would repeat when reporting that error
  • A handler could misbehave by returning an assembly that does not match the requested identity or by throwing

@tarekgh

tarekgh commented Jul 24, 2017

Copy link
Copy Markdown
Member

@dotnet-bot test Ubuntu x64 corefx_baseline
@dotnet-bot test Windows_NT x64 corefx_baseline

@dotnet dotnet deleted a comment from dotnet-bot Jul 24, 2017
@tarekgh

tarekgh commented Jul 24, 2017 •

Copy link
Copy Markdown
Member

LGTM. thanks for getting this fixed.

@tarekgh

tarekgh commented Jul 24, 2017

Copy link
Copy Markdown
Member

test Ubuntu x64 Formatting please

* Don't call AssemblyResolve event for CoreLib resources

Part of fix for #12668:
- CoreLib resource lookup should not raise the AssemblyResolve event because a misbehaving handler could cause an infinite recursion check and fail-fast to be triggered when the resource is not found, as the issue would repeat when reporting that error
- A handler could misbehave by returning an assembly that does not match the requested identity or by throwing

* Address feedback
@danmoseley danmoseley added this to the 2.0.0 milestone Aug 11, 2017
@kouvel

kouvel commented Aug 17, 2017

Copy link
Copy Markdown
Author

@dotnet-bot test this please

@kouvel
kouvel merged commit 207515e into dotnet:release/2.0.0 Aug 17, 2017
@kouvel
kouvel deleted the LoadFromFixRel20 branch August 17, 2017 09:13
@karelz karelz modified the milestones: 2.0.x, 2.0.0 Aug 28, 2017
@danmoseley

Copy link
Copy Markdown

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants