Skip to content
Permalink
Browse files
MDEV-11650 plugins.cracklib_password_check, plugins.two_password_vali…
…dations fail in buildbot with valgrind (Conditional jump or move depends on uninitialised value)
  • Loading branch information
vuvova committed May 24, 2017
1 parent fdc1fd6 commit 152aec0
Showing 1 changed file with 1 addition 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;

0 comments on commit 152aec0

Please sign in to comment.