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
5ee2d957
Commit
5ee2d957
authored
Jun 12, 2007
by
cmiller@zippy.cornsilk.net
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-maint
into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.1-maint
parents
120dae4c
10e6bf0f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
sql/sql_parse.cc
sql/sql_parse.cc
+4
-1
No files found.
sql/sql_parse.cc
View file @
5ee2d957
...
@@ -784,12 +784,15 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
...
@@ -784,12 +784,15 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
Old clients send null-terminated string ('\0' for empty string) for
Old clients send null-terminated string ('\0' for empty string) for
password. New clients send the size (1 byte) + string (not null
password. New clients send the size (1 byte) + string (not null
terminated, so also '\0' for empty string).
terminated, so also '\0' for empty string).
Cast *passwd to an unsigned char, so that it doesn't extend the sign
for *passwd > 127 and become 2**32-127 after casting to uint.
*/
*/
char
db_buff
[
NAME_LEN
+
1
];
// buffer to store db in utf8
char
db_buff
[
NAME_LEN
+
1
];
// buffer to store db in utf8
char
*
db
=
passwd
;
char
*
db
=
passwd
;
char
*
save_db
;
char
*
save_db
;
uint
passwd_len
=
(
thd
->
client_capabilities
&
CLIENT_SECURE_CONNECTION
?
uint
passwd_len
=
(
thd
->
client_capabilities
&
CLIENT_SECURE_CONNECTION
?
*
passwd
++
:
strlen
(
passwd
));
(
uchar
)(
*
passwd
++
)
:
strlen
(
passwd
));
uint
dummy_errors
,
save_db_length
,
db_length
;
uint
dummy_errors
,
save_db_length
,
db_length
;
int
res
;
int
res
;
Security_context
save_security_ctx
=
*
thd
->
security_ctx
;
Security_context
save_security_ctx
=
*
thd
->
security_ctx
;
...
...
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