mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
Bug#16372927: STACK OVERFLOW WITH LONG DATABASE NAME IN
GRANT STATEMENT Description: Merge from 5.1.
This commit is contained in:
commit
ca2708c061
1 changed files with 2 additions and 1 deletions
|
@ -3999,7 +3999,8 @@ bool mysql_grant(THD *thd, const char *db, List <LEX_USER> &list,
|
||||||
|
|
||||||
if (lower_case_table_names && db)
|
if (lower_case_table_names && db)
|
||||||
{
|
{
|
||||||
strmov(tmp_db,db);
|
strnmov(tmp_db,db,NAME_LEN);
|
||||||
|
tmp_db[NAME_LEN]= '\0';
|
||||||
my_casedn_str(files_charset_info, tmp_db);
|
my_casedn_str(files_charset_info, tmp_db);
|
||||||
db=tmp_db;
|
db=tmp_db;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue