Skip to content

Add a Stream buffer validation helper #1605

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 2 commits into from
Mar 25, 2025

Conversation

Rob-Hague
Copy link
Collaborator

On netcore we can use https://learn.microsoft.com/dotnet/api/system.io.stream.validatebufferarguments

On lower targets we define a helper

@Rob-Hague Rob-Hague force-pushed the validatebufferargs branch from cff8955 to 79ad872 Compare March 2, 2025 19:31
@Rob-Hague Rob-Hague force-pushed the validatebufferargs branch from 79ad872 to 37efd95 Compare March 2, 2025 19:35
@Rob-Hague Rob-Hague merged commit 484afbd into sshnet:develop Mar 25, 2025
3 checks passed
@Rob-Hague Rob-Hague deleted the validatebufferargs branch March 25, 2025 11:45
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.

2 participants