Skip to content

Commit 3b9e8df

Browse files
committed
Fixed (non crtitial) memory segment overrun
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
1 parent 6f6fa3b commit 3b9e8df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/sql_select.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5312,7 +5312,7 @@ make_join_statistics(JOIN *join, List<TABLE_LIST> &tables_list,
53125312
/* Initialize POSITION objects */
53135313
for (i=0 ; i <= table_count ; i++)
53145314
(void) new ((char*) (join->positions + i)) POSITION;
5315-
for (i=0 ; i <= sort_space ; i++)
5315+
for (i=0 ; i < sort_space ; i++)
53165316
(void) new ((char*) (join->sort_positions + i)) POSITION;
53175317

53185318
join->best_ref= stat_vector;

0 commit comments

Comments
 (0)