mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
MDEV-11650 plugins.cracklib_password_check, plugins.two_password_validations fail in buildbot with valgrind (Conditional jump or move depends on uninitialised value)
This commit is contained in:
@@ -30,6 +30,7 @@ static int crackme(MYSQL_LEX_STRING *username, MYSQL_LEX_STRING *password)
|
||||
const char *res;
|
||||
|
||||
memcpy(user, username->str, username->length);
|
||||
user[username->length]= 0;
|
||||
if ((host= strchr(user, '@')))
|
||||
*host++= 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user