diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-05-21 13:19:38 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-05-24 11:59:04 +0200 |
commit | 152aec019df9399afb72aa720b23c3bba0ac2bbe (patch) | |
tree | 4e38e1a67abe4b9540fe979b24dee5d1452d1cf6 /plugin | |
parent | fdc1fd6f49b43d1226785e71b3a2c851ac3bfb47 (diff) | |
download | mariadb-git-152aec019df9399afb72aa720b23c3bba0ac2bbe.tar.gz |
MDEV-11650 plugins.cracklib_password_check, plugins.two_password_validations fail in buildbot with valgrind (Conditional jump or move depends on uninitialised value)
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/cracklib_password_check/cracklib_password_check.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/cracklib_password_check/cracklib_password_check.c b/plugin/cracklib_password_check/cracklib_password_check.c index 7861d5fd83e..94587a6d659 100644 --- a/plugin/cracklib_password_check/cracklib_password_check.c +++ b/plugin/cracklib_password_check/cracklib_password_check.c @@ -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; |