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

Use memory/span for SSPI generation #2447

Merged
merged 1 commit into from May 6, 2024

Conversation

twsouthwick
Copy link
Member

@twsouthwick twsouthwick commented Apr 5, 2024

This change makes more use of memory/span APIs so that SSPI generation does not need to track arrays and indices.

  • The interop layer gets some updates to use span instead of pointers
  • Updates the SSPI generation to take in a ReadOnlyMemory

Part of #2253

Fixes #2441

@twsouthwick
Copy link
Member Author

@David-Engel step 2 in the sspi journey

@twsouthwick
Copy link
Member Author

@David-Engel any chance to get a review here?

@David-Engel David-Engel added this to the 6.0-preview1 milestone May 6, 2024
@David-Engel David-Engel requested a review from arellegue May 6, 2024 22:39
@David-Engel
Copy link
Contributor

Pipeline failures are due to test config changes that can be pulled in from main. I ran the Kerberos test pipeline against the branch and all tests passed. This just needs one more reviewer.

@JRahnama, @DavoudEshtehari

@DavoudEshtehari DavoudEshtehari added the 🐛 Bug! Something isn't right ! label May 6, 2024
@David-Engel David-Engel merged commit b4f38f5 into dotnet:main May 6, 2024
140 of 148 checks passed
@twsouthwick twsouthwick deleted the memspansspi branch May 7, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug! Something isn't right !
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TdsParser.ProcessSSPI in NetCore uses ArrayPool.Shared.Rent which might return an non zero-initialized array
4 participants