Skip to content

Fix verification of open delegates - #65425

Merged
jkotas merged 2 commits into
dotnet:mainfrom
jkotas:delegates
Feb 17, 2022
Merged

jkotas merged 2 commits into
dotnet:mainfrom
jkotas:delegates

Conversation

@jkotas

@jkotas jkotas commented Feb 16, 2022

Copy link
Copy Markdown
Member

Fixes #65010

@ghost ghost added the area-Tools-ILVerification Issues related to ilverify tool and IL verification in general label Feb 16, 2022
@ghost ghost assigned jkotas Feb 16, 2022
@ghost

ghost commented Feb 16, 2022

Copy link
Copy Markdown

Tagging subscribers to this area: @JulieLeeMSFT
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #65010

Author: jkotas
Assignees: -
Labels:

area-ILVerification

Milestone: -

if (!IsAssignable(targetSignature.ReturnType, invokeSignature.ReturnType))
return false;

int totalTargetArgs = targetSignature.Length + (targetSignature.IsStatic ? 0 : 1);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy of the CoreCLR VM logic for delegate verification.

@jkotas
jkotas merged commit 385fc88 into dotnet:main Feb 17, 2022
@jkotas
jkotas deleted the delegates branch February 17, 2022 08:08
@jcouv

jcouv commented Feb 17, 2022

Copy link
Copy Markdown
Contributor

Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Tools-ILVerification Issues related to ilverify tool and IL verification in general

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ILVerification fails unexpectedly on delegate construction

4 participants