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
6bb485b0
Commit
6bb485b0
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.1-specific fixes.
parent
72cd3636
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sql/sql_db.cc
sql/sql_db.cc
+1
-1
No files found.
sql/sql_db.cc
View file @
6bb485b0
...
@@ -1387,7 +1387,7 @@ static void backup_current_db_name(THD *thd,
...
@@ -1387,7 +1387,7 @@ static void backup_current_db_name(THD *thd,
}
}
else
else
{
{
strmake
(
saved_db_name
->
str
,
thd
->
db
,
saved_db_name
->
length
);
strmake
(
saved_db_name
->
str
,
thd
->
db
,
saved_db_name
->
length
-
1
);
saved_db_name
->
length
=
thd
->
db_length
;
saved_db_name
->
length
=
thd
->
db_length
;
}
}
}
}
...
...
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