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
61f953e8
Commit
61f953e8
authored
Aug 07, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed password buffer overflow
parent
e2a4c4a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sql/sql_acl.cc
sql/sql_acl.cc
+2
-2
No files found.
sql/sql_acl.cc
View file @
61f953e8
...
@@ -206,10 +206,10 @@ int acl_init(bool dont_read_acl_tables)
...
@@ -206,10 +206,10 @@ int acl_init(bool dont_read_acl_tables)
"Found old style password for user '%s'. Ignoring user. (You may want to restart using --old-protocol)"
,
"Found old style password for user '%s'. Ignoring user. (You may want to restart using --old-protocol)"
,
user
.
user
?
user
.
user
:
""
);
/* purecov: tested */
user
.
user
?
user
.
user
:
""
);
/* purecov: tested */
}
}
else
if
(
length
%
8
)
// This holds true for passwords
else
if
(
length
%
8
||
length
>
16
)
{
{
sql_print_error
(
sql_print_error
(
"Found invalid password for user: '%s
@
%s'; Ignoring user"
,
"Found invalid password for user: '%s
'@'
%s'; Ignoring user"
,
user
.
user
?
user
.
user
:
""
,
user
.
user
?
user
.
user
:
""
,
user
.
host
.
hostname
?
user
.
host
.
hostname
:
""
);
/* purecov: tested */
user
.
host
.
hostname
?
user
.
host
.
hostname
:
""
);
/* purecov: tested */
continue
;
/* purecov: tested */
continue
;
/* purecov: tested */
...
...
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