mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 15:25:33 +02:00
ha_innobase.cc:
Make sure no memory overrun of key buffer in range estimation sql/ha_innobase.cc: Make sure no memory overrun of key buffer in range estimation
This commit is contained in:
parent
8ab263d18c
commit
474ed9fdfc
1 changed files with 2 additions and 1 deletions
|
|
@ -2956,7 +2956,8 @@ ha_innobase::records_in_range(
|
|||
KEY* key;
|
||||
dict_index_t* index;
|
||||
mysql_byte* key_val_buff2 = (mysql_byte*) my_malloc(
|
||||
table->reclength,
|
||||
table->reclength
|
||||
+ table->max_key_length + 100,
|
||||
MYF(MY_WME));
|
||||
dtuple_t* range_start;
|
||||
dtuple_t* range_end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue