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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
883338a9
Commit
883338a9
authored
Nov 26, 2007
by
tnurnberg@mysql.com/white.intern.koehntopp.de
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#31752: check strmake() bounds
strmake() called with wrong parameters: 5.0-specific fixes.
parent
f91cf9c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
client/mysql.cc
client/mysql.cc
+4
-1
sql/sp.cc
sql/sp.cc
+1
-1
No files found.
client/mysql.cc
View file @
883338a9
...
...
@@ -2987,7 +2987,10 @@ com_connect(String *buffer, char *line)
Two null bytes are needed in the end of buff to allow
get_arg to find end of string the second time it's called.
*/
strmake
(
buff
,
line
,
sizeof
(
buff
)
-
2
);
tmp
=
strmake
(
buff
,
line
,
sizeof
(
buff
)
-
2
);
#ifdef EXTRA_DEBUG
tmp
[
1
]
=
0
;
#endif
tmp
=
get_arg
(
buff
,
0
);
if
(
tmp
&&
*
tmp
)
{
...
...
sql/sp.cc
View file @
883338a9
...
...
@@ -1902,7 +1902,7 @@ sp_use_new_db(THD *thd, LEX_STRING new_db, LEX_STRING *old_db,
if
(
thd
->
db
)
{
old_db
->
length
=
(
strmake
(
old_db
->
str
,
thd
->
db
,
old_db
->
length
)
-
old_db
->
length
=
(
strmake
(
old_db
->
str
,
thd
->
db
,
old_db
->
length
-
1
)
-
old_db
->
str
);
}
else
...
...
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