Commit d932d973 authored by Nikita Malyavin's avatar Nikita Malyavin

add frm corruption check for extra2.application_period

parent c92d2c9e
......@@ -2275,6 +2275,11 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write,
if (init_period_from_extra2(&period, pos, end))
DBUG_RETURN(err());
if (extra2_str_size(period.name.length)
+ extra2_str_size(period.constr_name.length)
+ 2 * frm_fieldno_size
!= extra2.application_period.length)
DBUG_RETURN(err());
status_var_increment(thd->status_var.feature_application_time_periods);
}
......
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