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 Intptr* is passed to delegate #79763

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

giritrivedi
Copy link
Contributor

When a delegate is passed an [out] parameter of type "intptr *" 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 "Intptr *" is handled after adding an addition case statement to handle MONO_TYPE_PTR in emit_managed_wrapper_ilgen. Supporting UT is added.

When a delegate is passed an [out] parameter of type "intptr *"
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 "Intptr *" is handled
after adding an addition case statement to handle MONO_TYPE_PTR
in emit_managed_wrapper_ilgen.
@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Dec 16, 2022
@dnfadmin
Copy link

dnfadmin commented Dec 16, 2022

CLA assistant check
All CLA requirements met.

@giritrivedi
Copy link
Contributor Author

Hi @vargaz , @lambdageek , @thaystg
Can you review this plz ?

@giritrivedi
Copy link
Contributor Author

Hi,
Is there anything pending for this PR to be merged ?

@vargaz vargaz merged commit 78ccdae into dotnet:main Jan 10, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Feb 9, 2023
@giritrivedi giritrivedi deleted the out_ptr_fix branch February 10, 2023 05:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Interop-coreclr 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