Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2e936807
Commit
2e936807
authored
May 18, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-4.0/
into serg.mylan:/usr/home/serg/Abk/mysql-4.0
parents
510f6623
50d369bb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
sql/sql_udf.cc
sql/sql_udf.cc
+6
-4
No files found.
sql/sql_udf.cc
View file @
2e936807
...
...
@@ -190,7 +190,9 @@ void udf_init()
This is done to ensure that only approved dll from the system
directories are used (to make this even remotely secure).
*/
if
(
strchr
(
dl_name
,
'/'
)
||
strlen
(
name
)
>
NAME_LEN
)
if
(
strchr
(
dl_name
,
'/'
)
||
IF_WIN
(
strchr
(
dl_name
,
'\\'
),
0
)
||
strlen
(
name
)
>
NAME_LEN
)
{
sql_print_error
(
"Invalid row in mysql.func table for function '%.64s'"
,
name
);
...
...
@@ -219,7 +221,7 @@ void udf_init()
}
tmp
->
dlhandle
=
dl
;
{
char
buf
[
MAX_FIELD_NAME
+
16
],
*
missing
;
char
buf
[
NAME_LEN
+
16
],
*
missing
;
if
((
missing
=
init_syms
(
tmp
,
buf
)))
{
sql_print_error
(
ER
(
ER_CANT_FIND_DL_ENTRY
),
missing
);
...
...
@@ -403,7 +405,7 @@ int mysql_create_function(THD *thd,udf_func *udf)
This is done to ensure that only approved dll from the system
directories are used (to make this even remotely secure).
*/
if
(
strchr
(
udf
->
dl
,
'/'
))
if
(
strchr
(
udf
->
dl
,
'/'
)
||
IF_WIN
(
strchr
(
dl_name
,
'\\'
),
0
)
)
{
send_error
(
&
thd
->
net
,
ER_UDF_NO_PATHS
,
ER
(
ER_UDF_NO_PATHS
));
DBUG_RETURN
(
1
);
...
...
@@ -433,7 +435,7 @@ int mysql_create_function(THD *thd,udf_func *udf)
}
udf
->
dlhandle
=
dl
;
{
char
buf
[
MAX_FIELD_NAME
+
16
],
*
missing
;
char
buf
[
NAME_LEN
+
16
],
*
missing
;
if
((
missing
=
init_syms
(
udf
,
buf
)))
{
net_printf
(
&
thd
->
net
,
ER_CANT_FIND_DL_ENTRY
,
missing
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment