We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
tokio-socks/src/tcp.rs
Line 337 in 9fdcccc
if the username len is 256, and so is the password, then it seems our buf won't have enough space to write all the data and we'll possibly panic.
We should make the buffer larger, or return an err if username/password is too long.
another option would be to make the buf heap allocated and growable
The text was updated successfully, but these errors were encountered:
validate_auth checks the length of the username and password. The buf size 513 is calculated according to the limitation.
validate_auth
Sorry, something went wrong.
you are totally correct!
No branches or pull requests
tokio-socks/src/tcp.rs
Line 337 in 9fdcccc
if the username len is 256, and so is the password, then it seems our buf won't have enough space to write all the data and we'll possibly panic.
We should make the buffer larger, or return an err if username/password is too long.
another option would be to make the buf heap allocated and growable
The text was updated successfully, but these errors were encountered: