Commit ebd9fced authored by serg@serg.mysql.com's avatar serg@serg.mysql.com

fixed MyISAM crash on dynamic-row tables with huge number of to-be-packed fields

parent 578ce24e
...@@ -495,7 +495,8 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags) ...@@ -495,7 +495,8 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
extra=ALIGN_SIZE(MI_MAX_DYN_BLOCK_HEADER)+MI_SPLIT_LENGTH+ extra=ALIGN_SIZE(MI_MAX_DYN_BLOCK_HEADER)+MI_SPLIT_LENGTH+
MI_DYN_DELETE_BLOCK_HEADER; MI_DYN_DELETE_BLOCK_HEADER;
tmp_length=max(share->base.pack_reclength,share->base.max_key_length); tmp_length=max(share->base.pack_reclength+share->base.pack_bits,
share->base.max_key_length);
info.alloced_rec_buff_length=tmp_length; info.alloced_rec_buff_length=tmp_length;
if (!(info.rec_alloc=(byte*) my_malloc(tmp_length+extra+8, if (!(info.rec_alloc=(byte*) my_malloc(tmp_length+extra+8,
MYF(MY_WME | MY_ZEROFILL)))) MYF(MY_WME | MY_ZEROFILL))))
......
This diff is collapsed.
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