1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

protect against corrupted frms

when reading table options
This commit is contained in:
Sergei Golubchik
2016-05-04 16:05:30 +02:00
parent bba3d42a1f
commit bf9404d3a4
2 changed files with 12 additions and 6 deletions

View File

@ -66,7 +66,8 @@ class engine_option_value: public Sql_alloc
link(start, end);
}
}
static uchar *frm_read(const uchar *buff, engine_option_value **start,
static uchar *frm_read(const uchar *buff, const uchar *buff_end,
engine_option_value **start,
engine_option_value **end, MEM_ROOT *root);
void link(engine_option_value **start, engine_option_value **end);
uint frm_length();