MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:msvensson Date:July 27 2006 10:28am
Subject:bk commit into 5.0 tree (msvensson:1.2234) BUG#21042
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of msvensson. When msvensson 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, 2006-07-27 12:28:49+02:00, msvensson@neptunus.(none) +1 -0
  Bug#21042 mysql client segfaults on importing a mysqldump export
   - Use strxnmov to protect the "buff" variable from overrun

  client/mysql.cc@stripped, 2006-07-27 12:28:45+02:00, msvensson@neptunus.(none) +1 -1
    Use strxnmov to protect the "buff" variable from overrun

# 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:	msvensson
# Host:	neptunus.(none)
# Root:	/home/msvensson/mysql/my50-m-bug21042

--- 1.209/client/mysql.cc	2006-07-27 12:28:57 +02:00
+++ 1.210/client/mysql.cc	2006-07-27 12:28:57 +02:00
@@ -2858,7 +2858,7 @@ com_connect(String *buffer, char *line)
   bzero(buff, sizeof(buff));
   if (buffer)
   {
-    strmov(buff, line);
+    strxnmov(buff, sizeof(buff), line, NullS);
     tmp= get_arg(buff, 0);
     if (tmp && *tmp)
     {
Thread
bk commit into 5.0 tree (msvensson:1.2234) BUG#21042msvensson27 Jul