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
f8e27655
Commit
f8e27655
authored
Oct 16, 2013
by
Venkata Sidagam
Browse files
Options
Browse Files
Download
Plain Diff
Bug#16900358 FIX FOR CVE-2012-5611 IS INCOMPLETE
Merging from mysql-5.1 to mysql-5.5
parents
bdb62daa
9fc51224
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
sql/sql_acl.cc
sql/sql_acl.cc
+4
-2
No files found.
sql/sql_acl.cc
View file @
f8e27655
...
...
@@ -1588,7 +1588,8 @@ ulong acl_get(const char *host, const char *ip,
copy_length
=
(
size_t
)
(
strlen
(
ip
?
ip
:
""
)
+
strlen
(
user
?
user
:
""
)
+
strlen
(
db
?
db
:
""
));
strlen
(
db
?
db
:
""
))
+
2
;
/* Added 2 at the end to avoid
buffer overflow at strmov()*/
/*
Make sure that strmov() operations do not result in buffer overflow.
*/
...
...
@@ -4957,7 +4958,8 @@ bool check_grant_db(THD *thd,const char *db)
size_t
copy_length
;
copy_length
=
(
size_t
)
(
strlen
(
sctx
->
priv_user
?
sctx
->
priv_user
:
""
)
+
strlen
(
db
?
db
:
""
));
strlen
(
db
?
db
:
""
))
+
1
;
/* Added 1 at the end to avoid
buffer overflow at strmov()*/
/*
Make sure that strmov() operations do not result in buffer overflow.
...
...
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