1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

don't load plugin of unsupported types

This commit is contained in:
Sergei Golubchik
2014-11-21 14:45:25 +01:00
parent 77e3cb7dc1
commit 4027e3b885

View File

@@ -1048,7 +1048,11 @@ static bool plugin_add(MEM_ROOT *tmp_root,
tmp.name.length= strlen(plugin->name);
if (plugin->type < 0 || plugin->type >= MYSQL_MAX_PLUGIN_TYPE_NUM)
continue; // invalid plugin
continue; // invalid plugin type
if (plugin->type == MYSQL_UDF_PLUGIN ||
(plugin->type == 8 && tmp.plugin_dl->mariaversion == 0))
continue; // unsupported plugin type
if (name->str && my_strnncoll(system_charset_info,
(const uchar *)name->str, name->length,