diff options
author | Eugene Kosov <claprix@yandex.ru> | 2018-01-12 22:45:35 +0300 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-01-13 02:01:33 +0100 |
commit | 57fd548d1035b07de1ec3e1a99881d5869ce0c44 (patch) | |
tree | c51dc0e88ca53554b2cea79dbec217f1a7e028f8 | |
parent | 93e8ee4ae102c60719b0c2cb467aec52024efd58 (diff) | |
download | mariadb-git-57fd548d1035b07de1ec3e1a99881d5869ce0c44.tar.gz |
SQL: uninitialized read [#387]
rpl.rpl_events sometimes fails in release mode after be81b00c843b4a3335a630afa7200fda6eab8e89
This could be prevented with MSAN
-rw-r--r-- | sql/sql_class.cc | 2 |
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; |