summaryrefslogtreecommitdiff
path: root/sql/unireg.cc
diff options
context:
space:
mode:
authortnurnberg@mysql.com/white.intern.koehntopp.de <>2007-12-17 09:16:47 +0100
committertnurnberg@mysql.com/white.intern.koehntopp.de <>2007-12-17 09:16:47 +0100
commitefa1061a636a2a1d4fd280971330cc190ed5dcbb (patch)
tree4501d7a748c3148dabe656360170ab39f6a95794 /sql/unireg.cc
parent6bb485b0801e99e4871e9a921dcb7fcb33d662fd (diff)
parente131a412815767bb8590c3831fd2797c10112ab8 (diff)
downloadmariadb-git-efa1061a636a2a1d4fd280971330cc190ed5dcbb.tar.gz
Merge mysql.com:/misc/mysql/31752_/50-31752_
into mysql.com:/misc/mysql/31752_/51-31752_
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r--sql/unireg.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc
index 8f2d10d4e2a..3ef1e4576e1 100644
--- a/sql/unireg.cc
+++ b/sql/unireg.cc
@@ -228,6 +228,11 @@ bool mysql_create_frm(THD *thd, const char *file_name,
create_info->comment.str : "", create_info->comment.length);
forminfo[46]=(uchar) create_info->comment.length;
#ifdef EXTRA_DEBUG
+ /*
+ EXTRA_DEBUG causes strmake() to initialize its buffer behind the
+ payload with a magic value to detect wrong buffer-sizes. We
+ explicitly zero that segment again.
+ */
memset((char*) forminfo+47 + forminfo[46], 0, 61 - forminfo[46]);
#endif
#ifdef WITH_PARTITION_STORAGE_ENGINE