From af784385b4a2b286000fa2c658e34283fe7bba60 Mon Sep 17 00:00:00 2001 From: Monty Date: Fri, 15 May 2020 14:20:43 +0300 Subject: Fix for using uninitialized memory MDEV-22073 MSAN use-of-uninitialized-value in collect_statistics_for_table() Other things: innodb.analyze_table was changed to mainly test statistic collection. Was discussed with Marko. --- sql/sql_statistics.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/sql_statistics.cc') diff --git a/sql/sql_statistics.cc b/sql/sql_statistics.cc index f8723a4f8ee..0f7a1d42fd6 100644 --- a/sql/sql_statistics.cc +++ b/sql/sql_statistics.cc @@ -1671,6 +1671,7 @@ public: */ virtual bool add() { + table_field->mark_unused_memory_as_defined(); return tree->unique_add(table_field->ptr); } -- cgit v1.2.1