Skip to content

Limit set size #86

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
Jan 5, 2023
Merged

Limit set size #86

merged 2 commits into from
Jan 5, 2023

Conversation

fiws
Copy link
Contributor

@fiws fiws commented Oct 16, 2022

Using Set with too much data leads to errors and unknown behaviour on macos and windows.

This PR limits the passable data on those platforms to known limits.

I also raised the max input on macos by switching to base64 for encoding. It uses a new prefix and also checks for the old one, so it should be backwards compatible.

This fixes #84

Also note that on macos the current behaviour actually interprets the input data as another command after a limit is reached. This could be a security vulnerability but is probably mitigated by the hex encoding.

fiws added 2 commits October 16, 2022 13:33

Verified

This commit was signed with the committer’s verified signature.
fiws Filip Weiss
also switch macos encoding to base64 to increase length limit

Signed-off-by: Filip Weiss <me@fiws.net>

Verified

This commit was signed with the committer’s verified signature.
fiws Filip Weiss
Signed-off-by: Filip Weiss <me@fiws.net>
@mikkeloscar
Copy link
Member

👍

1 similar comment
@demonCoder95
Copy link
Member

👍

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.

writing large passwords in darwin leads to truncated password
3 participants