-
-
Notifications
You must be signed in to change notification settings - Fork 622
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
ServerHandshake calls Packet.readNullTerminatedString without encoding #1975
Comments
sure, happy to discuss a PR |
Thanks @sidorares PR open |
sidorares
pushed a commit
that referenced
this issue
Apr 25, 2023
That's brilliant, thanks @sidorares ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If using server_handshake.js and adding a listener for field_list then it will call
const table = packet.readNullTerminatedString();
.It appears that the function expects an encoding and if it doesn't get one I see a stack trace like this
I wouldn't have noticed though if not having to make use of the workaround documented here #528 (comment)
Thanks for providing utils to run as a server though :)
Hacky fix for anybody else who stumbles across this, written in TypeScript.
By the way I'm happy to PR this if you like.
The text was updated successfully, but these errors were encountered: