Skip to content
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

Prevent 433 response for Nonutf8{User/Real}name #244

Merged
merged 1 commit into from
Dec 31, 2023

Conversation

mitchr
Copy link
Contributor

@mitchr mitchr commented Dec 4, 2023

Sending NICK foo after connectClient() causes an ERR_NICKNAMEINUSE response instead of the expected RPL_WELCOME.

Also use sendLine()/getRegistrationMessage() for testNonutf8Realname.

if b" FAIL " in d or b" 468 " in d: # ERR_INVALIDUSERNAME
self.sendLine(2, "NICK bar")
self.sendLine(2, b"USER username * * :i\xe8rc\xe9")
m = self.getRegistrationMessage(2)
Copy link
Owner

Choose a reason for hiding this comment

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

This will crash if the server returned the non-UTF8 username.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah okay I see, will revert that portion.

Sending `NICK foo` after connectClient() causes an ERR_NICKNAMEINUSE
response instead of the expected RPL_WELCOME.
@progval progval merged commit 18d04e8 into progval:master Dec 31, 2023
36 of 37 checks passed
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