mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge branch '5.5' into 10.1
This commit is contained in:
@ -747,9 +747,9 @@ static st_plugin_dl *plugin_dl_add(const LEX_STRING *dl, int report)
|
||||
This is done to ensure that only approved libraries from the
|
||||
plugin directory are used (to make this even remotely secure).
|
||||
*/
|
||||
if (check_valid_path(dl->str, dl->length) ||
|
||||
check_string_char_length((LEX_STRING *) dl, 0, NAME_CHAR_LEN,
|
||||
if (check_string_char_length((LEX_STRING *) dl, 0, NAME_CHAR_LEN,
|
||||
system_charset_info, 1) ||
|
||||
check_valid_path(dl->str, dl->length) ||
|
||||
plugin_dir_len + dl->length + 1 >= FN_REFLEN)
|
||||
{
|
||||
report_error(report, ER_UDF_NO_PATHS);
|
||||
@ -1814,6 +1814,9 @@ static void plugin_load(MEM_ROOT *tmp_root)
|
||||
LEX_STRING name= {(char *)str_name.ptr(), str_name.length()};
|
||||
LEX_STRING dl= {(char *)str_dl.ptr(), str_dl.length()};
|
||||
|
||||
if (!name.length || !dl.length)
|
||||
continue;
|
||||
|
||||
/*
|
||||
there're no other threads running yet, so we don't need a mutex.
|
||||
but plugin_add() before is designed to work in multi-threaded
|
||||
|
Reference in New Issue
Block a user