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
9068238b
Commit
9068238b
authored
Jun 24, 2015
by
Yashwant Sahu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug# 20376760: STACK-BUFFER-OVERFLOW WITH LONG PATHS TO CERTAIN VARIABLES
parent
0eadadad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mysys/mf_loadpath.c
mysys/mf_loadpath.c
+2
-2
No files found.
mysys/mf_loadpath.c
View file @
9068238b
/* Copyright (c) 2000, 201
0
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2000, 201
5
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -47,7 +47,7 @@ char * my_load_path(char * to, const char *path,
(
void
)
strnmov
(
buff
,
path
,
FN_REFLEN
);
/* Return org file name */
}
else
(
void
)
strxnmov
(
buff
,
FN_REFLEN
,
own_path_prefix
,
path
,
NullS
);
(
void
)
strxnmov
(
buff
,
sizeof
(
buff
)
-
1
,
own_path_prefix
,
path
,
NullS
);
strnmov
(
to
,
buff
,
FN_REFLEN
);
to
[
FN_REFLEN
-
1
]
=
'\0'
;
DBUG_PRINT
(
"exit"
,(
"to: %s"
,
to
));
...
...
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