Skip to content

Conversation

@stephentoub
Copy link
Member

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

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