Skip to content
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

Handle crash when [out] parameter of type int is passed to delegate #81276

Merged
merged 1 commit into from
Feb 8, 2023

Conversation

giritrivedi
Copy link
Contributor

When a delegate is passed an [out] parameter of type "int" it will crash since this data type is not handled in emit_managed_wrapper_ilgen. This will lead to a crash. With this fix [out] parameter of type "int" is handled after adding an addition case statement to handle MONO_TYPE_I in emit_managed_wrapper_ilgen. Supporting UT is added.

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Jan 27, 2023
When a delegate is passed an [out] parameter of type "int" it will crash
since this data type is not handled in emit_managed_wrapper_ilgen.
This will lead to a crash. With this fix [out] parameter of type "int"
is handled after adding an addition case statement to handle MONO_TYPE_I
in emit_managed_wrapper_ilgen. Supporting UT is added.
@giritrivedi
Copy link
Contributor Author

@lambdageek , @thaystg can you review this plz ?

@lambdageek lambdageek merged commit bd54093 into dotnet:main Feb 8, 2023
@lambdageek
Copy link
Member

Thanks for your contribution @giritrivedi 🎉

@ghost ghost locked as resolved and limited conversation to collaborators Mar 10, 2023
@giritrivedi giritrivedi deleted the out_int_para_fix branch November 22, 2023 09:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Interop-mono community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants