diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-04-09 16:18:47 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-04-09 16:18:47 +0200 |
commit | 37379ef0ed598ee553907d87bbf2a7dfcdbc34f1 (patch) | |
tree | 72d17bfc8574d1a4221b7fc964e186de9ef45473 /sql/unireg.h | |
parent | e71cda83c685a27a4ec4f9d3083fed3f44b22642 (diff) | |
download | mariadb-git-37379ef0ed598ee553907d87bbf2a7dfcdbc34f1.tar.gz |
limit frm size, when reading it in memory
Diffstat (limited to 'sql/unireg.h')
-rw-r--r-- | sql/unireg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/unireg.h b/sql/unireg.h index 8fba6e5cfbe..0ef69beb08a 100644 --- a/sql/unireg.h +++ b/sql/unireg.h @@ -193,6 +193,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) static inline bool is_binary_frm_header(uchar *head) { |