Skip to content

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

Closed
0x0a0d wants to merge 1 commit intocurl:masterfrom
0x0a0d:fix_socks_username_length
Closed

socks: fix username max size is 255 (0xFF)#10105
0x0a0d wants to merge 1 commit intocurl:masterfrom
0x0a0d:fix_socks_username_length

Conversation

@0x0a0d
Copy link
Contributor

@0x0a0d 0x0a0d commented Dec 16, 2022

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 |
* +----+------+----------+------+----------+
*/

Copy link
Member

@danielgustafsson danielgustafsson left a comment

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
Copy link
Member

bagder commented Dec 16, 2022

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