Skip to content

Revert SafeBuffer change around pointer initialization #63289

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

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

stephentoub
Copy link
Member

Follow-up to #63020 (comment)
cc: @marek-safar

@@ -153,6 +153,8 @@ public void AcquirePointer(ref byte* pointer)
if (_numBytes == Uninitialized)
throw NotInitialized();

pointer = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add pragma warning around this with reference to the issue?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not a big fan of adding suppression for things we don't have enabled. We'd have an absolute ton of such suppression across SPC and the rest of the repo if we did that.

@stephentoub stephentoub merged commit e789b4e into dotnet:main Jan 4, 2022
@stephentoub stephentoub deleted the safebufferpointer branch January 4, 2022 01:39
@ghost ghost locked as resolved and limited conversation to collaborators Feb 3, 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.

2 participants