shibakentoku
null+****@clear*****
Wed Oct 30 05:09:40 JST 2013
shibakentoku 2013-10-30 05:09:40 +0900 (Wed, 30 Oct 2013) New Revision: c331599ded7c9b846ba735845fe6c0afeed166f4 https://github.com/mroonga/mroonga/commit/c331599ded7c9b846ba735845fe6c0afeed166f4 Message: fix uninitialized tmp_table_share.fields in wrapper_inplace_alter_table() and storage_inplace_alter_table() refs #1958 Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+2 -0) =================================================================== --- ha_mroonga.cpp 2013-10-30 04:23:15 +0900 (6334163) +++ ha_mroonga.cpp 2013-10-30 05:09:40 +0900 (1e4599e) @@ -12970,6 +12970,7 @@ bool ha_mroonga::wrapper_inplace_alter_table( memset(index_tables, 0, sizeof(grn_obj *) * ha_alter_info->key_count); memset(index_columns, 0, sizeof(grn_obj *) * ha_alter_info->key_count); tmp_table_share.keys = ha_alter_info->key_count; + tmp_table_share.fields = 0; if (!(tmp_share = (MRN_SHARE *) my_multi_malloc(MYF(MY_WME | MY_ZEROFILL), &tmp_share, sizeof(*tmp_share), @@ -13126,6 +13127,7 @@ bool ha_mroonga::storage_inplace_alter_table( memset(index_tables, 0, sizeof(grn_obj *) * ha_alter_info->key_count); memset(index_columns, 0, sizeof(grn_obj *) * ha_alter_info->key_count); tmp_table_share.keys = ha_alter_info->key_count; + tmp_table_share.fields = 0; if (!(tmp_share = (MRN_SHARE *) my_multi_malloc(MYF(MY_WME | MY_ZEROFILL), &tmp_share, sizeof(*tmp_share), -------------- next part -------------- HTML����������������������������... ダウンロード