Skip to content

Commit

Permalink
Fixed access to not initalized memory
Browse files Browse the repository at this point in the history
Most of the volations came from:
sel_arg_range_seq_next(void*, st_key_multi_range*) (opt_range_mrr.cc:342)
  • Loading branch information
montywi committed May 15, 2020
1 parent 523d67a commit 72789e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/opt_range.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 72789e4

Please sign in to comment.