mirror of
https://github.com/MariaDB/server.git
synced 2025-08-09 22:24:09 +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;
|
return CR_SERVER_HANDSHAKE_ERR;
|
||||||
|
|
||||||
/* save it in MYSQL */
|
/* save it in MYSQL */
|
||||||
memcpy(mysql->scramble, pkt, pkt_len);
|
memcpy(mysql->scramble, pkt, pkt_len - 1);
|
||||||
mysql->scramble[pkt_len] = 0;
|
mysql->scramble[pkt_len - 1] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mysql->passwd[0])
|
if (mysql->passwd[0])
|
||||||
|
Reference in New Issue
Block a user