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

Avoid to call MemoryMarshal.GetReference() without verifying the length #454

Merged
merged 1 commit into from
Jun 18, 2020

Conversation

ycrumeyrolle
Copy link
Collaborator

Because ReadOnlySpan<byte>.Empty cause a NullReferenceException

… size, because `ReadOnlySpan<byte>.Empty` cause a `NullReferenceException`
@ycrumeyrolle ycrumeyrolle changed the title Avoid to call MemoryMarshal.GetReference() without verifying t lengthhe… Avoid to call MemoryMarshal.GetReference() without verifying the length Jun 18, 2020
@ycrumeyrolle ycrumeyrolle merged commit 7be9201 into master Jun 18, 2020
@ycrumeyrolle ycrumeyrolle deleted the fix-sha2 branch June 18, 2020 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant