1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-21495: Conditional jump or move depends on uninitialised value in sel_arg_range_seq_next

Initialize the parameter PARAM::max_key_part when we iterate over the ranges to get estimates
from EITS.
This commit is contained in:
Varun Gupta
2020-05-26 01:50:46 +05:30
parent cb9c49a9b2
commit 76f4ae8295
4 changed files with 43 additions and 0 deletions

View File

@@ -73,6 +73,7 @@ range_seq_t sel_arg_range_seq_init(void *init_param, uint n_ranges, uint flags)
{
SEL_ARG_RANGE_SEQ *seq= (SEL_ARG_RANGE_SEQ*)init_param;
seq->at_start= TRUE;
seq->param->max_key_part= 0;
seq->stack[0].key_tree= NULL;
seq->stack[0].min_key= seq->param->min_key;
seq->stack[0].min_key_flag= 0;