diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-07-08 19:38:26 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-07-08 19:38:26 +0200 |
commit | ca2ba2291af7e93893febed414e2ae98a5abd543 (patch) | |
tree | a081b1b1e70dff70cf5855c841f03e8637b46d5e /sql/unireg.h | |
parent | 65f85264a4c5319ee161545f60de99468b2382e5 (diff) | |
download | mariadb-git-ca2ba2291af7e93893febed414e2ae98a5abd543.tar.gz |
MDEV-6224 Incorrect information in file when *.frm is > 256K
Reject huge frms at CREATE TABLE, not when it - successfully written - is being opened.
Also raise the frm size limit from 256K to 512K
Diffstat (limited to 'sql/unireg.h')
-rw-r--r-- | sql/unireg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/unireg.h b/sql/unireg.h index 9b40b7b0779..5f133da674f 100644 --- a/sql/unireg.h +++ b/sql/unireg.h @@ -203,7 +203,7 @@ LEX_CUSTRING build_frm_image(THD *thd, const char *table, #define FRM_HEADER_SIZE 64 #define FRM_FORMINFO_SIZE 288 -#define FRM_MAX_SIZE (256*1024) +#define FRM_MAX_SIZE (512*1024) static inline bool is_binary_frm_header(uchar *head) { |