mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01: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:
parent
fdc1fd6f49
commit
152aec019d
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue