Skip to content

Validate collection sizes before allocating - #1848

Merged
Rob-Hague merged 1 commit into
sshnet:developfrom
Rob-Hague:sftp-alloc
Oct 19, 2026
Merged

Rob-Hague merged 1 commit into
sshnet:developfrom
Rob-Hague:sftp-alloc

Conversation

@Rob-Hague

Copy link
Copy Markdown
Collaborator

Validate cases where (in particular) a few bytes of server data determines the size of a collection allocated, and throw if it's not possible based on the size of the buffer that the collection is purported to be contained in.

Validate cases where (in particular) a few bytes of server data determines the size of
a collection allocated, and throw if it's not possible based on the size of the buffer
that the collection is purported to be contained in.

@WojciechNagorski WojciechNagorski left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@Rob-Hague
Rob-Hague merged commit b741550 into sshnet:develop Oct 19, 2026
6 checks passed
@Rob-Hague
Rob-Hague deleted the sftp-alloc branch October 19, 2026 17:52
@Rob-Hague

Copy link
Copy Markdown
Collaborator Author

Thanks

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