Commit 388b5b2e authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #1314

fix memory overrun

git-svn-id: file:///svn/mysql/tokudb-engine/src@8315 c7de825b-a66e-492c-adef-691d508d4ae1
parent 3d42aff8
......@@ -774,7 +774,7 @@ int ha_tokudb::open(const char *name, int mode, uint test_if_locked) {
my_multi_malloc(MYF(MY_WME),
&key_buff, max_key_length,
&key_buff2, max_key_length,
&primary_key_buff, (hidden_primary_key ? 0 : table_share->key_info[table_share->primary_key].key_length + sizeof(uchar)),
&primary_key_buff, (hidden_primary_key ? 0 : max_key_length),
NullS))) {
my_free(newname, MYF(MY_ALLOW_ZERO_PTR));
TOKUDB_DBUG_RETURN(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment