Skip to content

socks: fix username max size is 255 (0xFF) - #10105

Closed
0x0a0d wants to merge 1 commit into
curl:masterfrom
0x0a0d:fix_socks_username_length
Closed

0x0a0d wants to merge 1 commit into
curl:masterfrom
0x0a0d:fix_socks_username_length

Conversation

@0x0a0d

@0x0a0d 0x0a0d commented Dec 16, 2022

Copy link
Copy Markdown
Contributor

curl/lib/socks.c

Lines 681 to 687 in 50e781d

/* username/password request looks like
* +----+------+----------+------+----------+
* |VER | ULEN | UNAME | PLEN | PASSWD |
* +----+------+----------+------+----------+
* | 1 | 1 | 1 to 255 | 1 | 1 to 255 |
* +----+------+----------+------+----------+
*/

@danielgustafsson danielgustafsson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Agreed, this looks like a correct fix. Seems like commit f4b6901 got the username length check wrong but the password length check right.

@bagder

bagder commented Dec 16, 2022

Copy link
Copy Markdown
Member

Thanks!

@0x0a0d
0x0a0d deleted the fix_socks_username_length branch September 21, 2023 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants