Skip to content

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 area-Interop-coreclr community-contribution Indicates that the PR has been added by a community member labels 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