mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 09:14:17 +01:00
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
This commit is contained in:
parent
6f6fa3bec2
commit
3b9e8dfa84
1 changed files with 1 additions and 1 deletions
|
@ -5312,7 +5312,7 @@ make_join_statistics(JOIN *join, List<TABLE_LIST> &tables_list,
|
||||||
/* Initialize POSITION objects */
|
/* Initialize POSITION objects */
|
||||||
for (i=0 ; i <= table_count ; i++)
|
for (i=0 ; i <= table_count ; i++)
|
||||||
(void) new ((char*) (join->positions + i)) POSITION;
|
(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;
|
(void) new ((char*) (join->sort_positions + i)) POSITION;
|
||||||
|
|
||||||
join->best_ref= stat_vector;
|
join->best_ref= stat_vector;
|
||||||
|
|
Loading…
Add table
Reference in a new issue