Skip to content

Conversation

@AaronRobinsonMSFT
Copy link
Member

When DisableRuntimeMarshalling is set, the runtime should block
a bad-list for blittable types.

This doesn't address the case where the P/Invoke is inlined.

Contributes to #74269

/cc @davidwrighton @dotnet/interop-contrib

When DisableRuntimeMarshalling is set, the runtime should block
an bad-list for blittable types.

This doesn't address the case where the P/Invoke is inlined.
@AaronRobinsonMSFT AaronRobinsonMSFT merged commit ec9f7f5 into dotnet:main Aug 26, 2022
@AaronRobinsonMSFT AaronRobinsonMSFT deleted the runtime_74269 branch August 26, 2022 05:16
@AaronRobinsonMSFT
Copy link
Member Author

@tannergooding Is this a priority to get into .NET 7? The missing part for inlined P/Invokes is still outstanding, but that is invasive enough that that isn't something I'd like for .NET 7, but this part seems safe enough.

@tannergooding
Copy link
Member

@AaronRobinsonMSFT, we've already shipped 3 versions of .NET with this interop "hole", so I don't think its a huge issue if the fix misses .NET 7 as well.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants