Commit 2d7db2e1 authored by Nikita Malyavin's avatar Nikita Malyavin

check for appliation_period.str for frm corruption detection

parent a6fd73b7
......@@ -2256,6 +2256,8 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write,
if (extra2.without_overlaps.str)
{
if (extra2.application_period.str == NULL)
DBUG_RETURN(err());
const uchar *key_pos= extra2.without_overlaps.str;
period.unique_keys= read_frm_keyno(key_pos);
for (uint k= 0; k < period.unique_keys; k++)
......
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