Below is the list of changes that have just been committed into a local
5.0 repository of cmiller. When cmiller does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2007-06-12 08:48:30-04:00, cmiller@stripped +1 -0
Merge zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-4.1-maint
into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.0-maint-2
MERGE: 1.1616.2877.110
sql/sql_parse.cc@stripped, 2007-06-12 08:48:24-04:00, cmiller@stripped +0 -0
Auto merged
MERGE: 1.271.134.3
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: cmiller
# Host: zippy.cornsilk.net
# Root: /home/cmiller/work/mysql/mysql-5.0-maint-2/RESYNC
--- 1.624/sql/sql_parse.cc 2007-06-08 17:06:26 -04:00
+++ 1.625/sql/sql_parse.cc 2007-06-12 08:48:24 -04:00
@@ -1700,11 +1700,14 @@ bool dispatch_command(enum enum_server_c
Old clients send null-terminated string ('\0' for empty string) for
password. New clients send the size (1 byte) + string (not null
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= passwd;
uint passwd_len= thd->client_capabilities & CLIENT_SECURE_CONNECTION ?
- *passwd++ : strlen(passwd);
+ (uchar)(*passwd++) : strlen(passwd);
db+= passwd_len + 1;
#ifndef EMBEDDED_LIBRARY
/* Small check for incoming packet */
| Thread |
|---|
| • bk commit into 5.0 tree (cmiller:1.2531) | Chad MILLER | 12 Jun |