Skip to content

Commit

Permalink
Fixed (non crtitial) memory segment overrun
Browse files Browse the repository at this point in the history
This was discovered as part of adding a protected memory area between
each area allocated by multi_alloc().

The patch that adds the protection will be pushed in 10.5.
This patch adds fixes that are unique for 10.10
  • Loading branch information
montywi committed Feb 26, 2023
1 parent 6f6fa3b commit 3b9e8df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/sql_select.cc
Expand Up @@ -5312,7 +5312,7 @@ make_join_statistics(JOIN *join, List<TABLE_LIST> &tables_list,
/* Initialize POSITION objects */
for (i=0 ; i <= table_count ; i++)
(void) new ((char*) (join->positions + i)) POSITION;
for (i=0 ; i <= sort_space ; i++)
for (i=0 ; i < sort_space ; i++)
(void) new ((char*) (join->sort_positions + i)) POSITION;

join->best_ref= stat_vector;
Expand Down

0 comments on commit 3b9e8df

Please sign in to comment.