Commit ebf1e1d6 authored by Sergei Golubchik's avatar Sergei Golubchik

NULL pointer dereference

in a case of a specially crafted invalid frm
parent b48555e9
......@@ -2587,9 +2587,9 @@ static bool fix_vcol_expr(THD *thd, TABLE *table, Field *field,
error= func_expr->walk(&Item::check_vcol_func_processor, 0, &res);
if (error || (res.errors & VCOL_IMPOSSIBLE))
{
{ // this can only happen if the frm was corrupted
my_error(ER_VIRTUAL_COLUMN_FUNCTION_IS_NOT_ALLOWED, MYF(0), res.name,
"???", field->field_name);
"???", field ? field->field_name : "?????");
goto end;
}
vcol->flags= res.errors;
......
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