-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
When the username and password are too long, it can cause a panic error in ping method. #1482
Comments
Same problem here. We are using JWT tokens to authorize against Azure MySQL Flexible Server. Our username and token combined are over 4k for some identities. Problem is in this part of code Line 395 in 2f15276
There should be control, if
|
kratkyzobak
pushed a commit
to kratkyzobak/mysql
that referenced
this issue
Aug 20, 2024
kratkyzobak
pushed a commit
to kratkyzobak/mysql
that referenced
this issue
Aug 20, 2024
5 tasks
methane
pushed a commit
that referenced
this issue
Nov 11, 2024
methane
pushed a commit
to methane/mysql
that referenced
this issue
Nov 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
When the username is operated with a length of 4096 bits, it will definitely cause a panic error. The password has not been verified yet.
Example code
Error log
Configuration
Driver version (or git SHA):
1.7
Go version: run
go version
in your consolego version go1.21.0 linux/amd64
Server version: E.g. MySQL 5.6, MariaDB 10.0.20
mariadb
Server OS: E.g. Debian 8.1 (Jessie), Windows 10
ubuntu22 wsl
The text was updated successfully, but these errors were encountered: