List:Commits« Previous MessageNext Message »
From:Tatjana A Nuernberg Date:November 26 2007 8:38am
Subject:bk commit into 5.1 tree (tnurnberg:1.2642) BUG#31752
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of tnurnberg. When tnurnberg 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-11-26 09:38:42+01:00, tnurnberg@stripped +1 -0
  Bug#31752: check strmake() bounds
  
  strmake() called with wrong parameters:
  5.1-specific fixes.

  sql/sql_db.cc@stripped, 2007-11-26 09:38:40+01:00, tnurnberg@stripped +1 -1
    fix off-by-one buffer-length

diff -Nrup a/sql/sql_db.cc b/sql/sql_db.cc
--- a/sql/sql_db.cc	2007-09-11 00:10:32 +02:00
+++ b/sql/sql_db.cc	2007-11-26 09:38:40 +01:00
@@ -1387,7 +1387,7 @@ static void backup_current_db_name(THD *
   }
   else
   {
-    strmake(saved_db_name->str, thd->db, saved_db_name->length);
+    strmake(saved_db_name->str, thd->db, saved_db_name->length - 1);
     saved_db_name->length= thd->db_length;
   }
 }
Thread
bk commit into 5.1 tree (tnurnberg:1.2642) BUG#31752Tatjana A Nuernberg26 Nov