summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2018-01-12 22:45:35 +0300
committerSergei Golubchik <serg@mariadb.org>2018-01-12 21:20:24 +0100
commit755367d6b43fb60705d21c7435f2f1cdebab81c8 (patch)
tree5a90b7fce005965f35b0525715a3ac194c13037d
parentfa8574e47f23292169ed0911a87308e60a2086d6 (diff)
downloadmariadb-git-bb-10.3-temporal.tar.gz
SQL: uninitialized read [#387]bb-10.3-temporal
rpl.rpl_events sometimes fails in release mode after be81b00c843b4a3335a630afa7200fda6eab8e89 This could be prevented with MSAN
-rw-r--r--sql/sql_class.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 84fdaf8b1b6..9f6ff7cde34 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -813,6 +813,8 @@ THD::THD(my_thread_id id, bool is_wsrep_applier, bool skip_global_sys_var_lock)
// Must be reset to handle error with THD's created for init of mysqld
lex->current_select= 0;
start_utime= utime_after_query= 0;
+ system_time= 0;
+ system_time_sec_part= 0;
utime_after_lock= 0L;
progress.arena= 0;
progress.report_to_client= 0;