mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
A fix for small stack overflow ...
This commit is contained in:
@@ -196,7 +196,7 @@ static bool check_user(THD *thd,enum_server_command command, const char *user,
|
|||||||
thd->db=0;
|
thd->db=0;
|
||||||
thd->db_length=0;
|
thd->db_length=0;
|
||||||
USER_RESOURCES ur;
|
USER_RESOURCES ur;
|
||||||
char tmp_passwd[SCRAMBLE_LENGTH];
|
char tmp_passwd[SCRAMBLE_LENGTH + 1];
|
||||||
|
|
||||||
if (passwd[0] && strlen(passwd) != SCRAMBLE_LENGTH)
|
if (passwd[0] && strlen(passwd) != SCRAMBLE_LENGTH)
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user