summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2020-05-15 15:14:08 +0300
committerMonty <monty@mariadb.org>2020-05-15 15:14:08 +0300
commit72789e4b2b0f631635297c6bc785c7364d60ca9f (patch)
tree71e8efa13a870cdc3ca8bbe6a25ed5f655bf3269 /sql/opt_range.cc
parent523d67a272ca37bf6c1972bae09f59d72a78d99c (diff)
downloadmariadb-git-72789e4b2b0f631635297c6bc785c7364d60ca9f.tar.gz
Fixed access to not initalized memory
Most of the volations came from: sel_arg_range_seq_next(void*, st_key_multi_range*) (opt_range_mrr.cc:342)
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index bf968878a72..66c870dd2ac 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -2721,6 +2721,7 @@ int SQL_SELECT::test_quick_select(THD *thd, key_map keys_to_use,
param.imerge_cost_buff_size= 0;
param.using_real_indexes= TRUE;
param.remove_jump_scans= TRUE;
+ param.max_key_parts= 0;
param.remove_false_where_parts= remove_false_parts_of_where;
param.force_default_mrr= ordered_output;
param.possible_keys.clear_all();
@@ -3435,6 +3436,7 @@ bool calculate_cond_selectivity_for_table(THD *thd, TABLE *table, Item **cond)
param.using_real_indexes= FALSE;
param.real_keynr[0]= 0;
param.alloced_sel_args= 0;
+ param.max_key_parts= 0;
thd->no_errors=1;