mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
merge of 5.1-bugteam
This commit is contained in:
@ -4050,8 +4050,12 @@ update_ref_and_keys(THD *thd, DYNAMIC_ARRAY *keyuse,JOIN_TAB *join_tab,
|
||||
continue;
|
||||
}
|
||||
|
||||
#ifdef HAVE_purify
|
||||
/* Valgrind complains about overlapped memcpy when save_pos==use. */
|
||||
#if defined(__GNUC__) && !MY_GNUC_PREREQ(4,4)
|
||||
/*
|
||||
Old gcc used a memcpy(), which is undefined if save_pos==use:
|
||||
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19410
|
||||
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39480
|
||||
*/
|
||||
if (save_pos != use)
|
||||
#endif
|
||||
*save_pos= *use;
|
||||
|
Reference in New Issue
Block a user