1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Bug#21432 Database/Table name limited to 64 bytes, not chars, problems with multi-byte

This commit is contained in:
gluh@mysql.com/eagle.(none)
2007-04-03 16:13:27 +05:00
parent 89dec159d1
commit 2d47f0cb1b
25 changed files with 2255 additions and 1997 deletions

View File

@@ -162,7 +162,8 @@ static st_plugin_dl *plugin_dl_add(const LEX_STRING *dl, int report)
plugin directory are used (to make this even remotely secure).
*/
if (my_strchr(files_charset_info, dl->str, dl->str + dl->length, FN_LIBCHAR) ||
dl->length > NAME_LEN ||
check_string_char_length((LEX_STRING *) dl, "", NAME_CHAR_LEN,
system_charset_info, 1) ||
plugin_dir_len + dl->length + 1 >= FN_REFLEN)
{
if (report & REPORT_TO_USER)