after merge fixes
This commit is contained in:
parent
9210c01cac
commit
10a120aed3
@ -83,10 +83,10 @@ static char *init_syms(udf_func *tmp, char *nm)
|
|||||||
{
|
{
|
||||||
char *end;
|
char *end;
|
||||||
|
|
||||||
if (!((tmp->func= dlsym(tmp->dlhandle, tmp->name))))
|
if (!((tmp->func= dlsym(tmp->dlhandle, tmp->name.str))))
|
||||||
return tmp->name;
|
return tmp->name.str;
|
||||||
|
|
||||||
end=strmov(nm,tmp->name);
|
end=strmov(nm,tmp->name.str);
|
||||||
|
|
||||||
if (tmp->type == UDFTYPE_AGGREGATE)
|
if (tmp->type == UDFTYPE_AGGREGATE)
|
||||||
{
|
{
|
||||||
@ -193,10 +193,10 @@ void udf_init()
|
|||||||
This is done to ensure that only approved dll from the system
|
This is done to ensure that only approved dll from the system
|
||||||
directories are used (to make this even remotely secure).
|
directories are used (to make this even remotely secure).
|
||||||
*/
|
*/
|
||||||
if (strchr(dl_name, '/') || strlen(name) > NAME_LEN)
|
if (strchr(dl_name, '/') || name.length > NAME_LEN)
|
||||||
{
|
{
|
||||||
sql_print_error("Invalid row in mysql.func table for function '%.64s'",
|
sql_print_error("Invalid row in mysql.func table for function '%.64s'",
|
||||||
name);
|
name.str);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -204,7 +204,7 @@ void udf_init()
|
|||||||
if (!(tmp= add_udf(&name,(Item_result) table->field[1]->val_int(),
|
if (!(tmp= add_udf(&name,(Item_result) table->field[1]->val_int(),
|
||||||
dl_name, udftype)))
|
dl_name, udftype)))
|
||||||
{
|
{
|
||||||
sql_print_error("Can't alloc memory for udf function: '%.64s'", name);
|
sql_print_error("Can't alloc memory for udf function: '%.64s'", name.str);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user