From: Date: December 28 2008 4:03pm Subject: bzr commit into mysql-6.0 branch (sergefp:2707) List-Archive: http://lists.mysql.com/commits/62388 Message-Id: <20081228150305.8768B2EA047@pslp2.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT #At file:///home/spetrunia/dev/mysql-6.0-opt/ based on revid:sergefp@stripped 2707 Sergey Petrunia 2008-12-28 [merge] Merge mysql-6.0 -> mysql-6.0-opt modified: sql/sql_base.cc === modified file 'sql/sql_base.cc' --- a/sql/sql_base.cc 2008-12-24 21:07:30 +0000 +++ b/sql/sql_base.cc 2008-12-28 15:02:51 +0000 @@ -6525,6 +6525,11 @@ int setup_wild(THD *thd, TABLE_LIST *tab SELECT_LEX *select_lex= thd->lex->current_select; select_lex->with_wild= 0; + /* + The assignment below is translated to memcpy() call (at least on some + platforms). memcpy() expects that source and destination areas do not + overlap. That problem was detected by valgrind. + */ if (&select_lex->item_list != &fields) select_lex->item_list= fields;