mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
one-byte overflow with old passwords
This commit is contained in:
@@ -3934,8 +3934,8 @@ static int old_password_auth_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql)
|
||||
return CR_SERVER_HANDSHAKE_ERR;
|
||||
|
||||
/* save it in MYSQL */
|
||||
memcpy(mysql->scramble, pkt, pkt_len);
|
||||
mysql->scramble[pkt_len] = 0;
|
||||
memcpy(mysql->scramble, pkt, pkt_len - 1);
|
||||
mysql->scramble[pkt_len - 1] = 0;
|
||||
}
|
||||
|
||||
if (mysql->passwd[0])
|
||||
|
Reference in New Issue
Block a user