summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-05-16 11:44:51 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-05-16 11:44:51 +0900
commit304b52fabe1c9672adac79dcc7777b07a468b6a4 (patch)
treec400cc01fe3b24da5273304777589ff831afeda9 /include
parent7aff5507dddf63dab578165471205b674e28524c (diff)
downloadmruby-304b52fabe1c9672adac79dcc7777b07a468b6a4.tar.gz
mruby-304b52fabe1c9672adac79dcc7777b07a468b6a4.zip
Set maximum string (and symbol) size to 65534 (`UINT16_MAX-1`).
The previous value (`UINT16_MAX`) was too long for symbols, so it raises an exception after the length check.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/compile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby/compile.h b/include/mruby/compile.h
index f19d9b0b3..8f8f2ebd7 100644
--- a/include/mruby/compile.h
+++ b/include/mruby/compile.h
@@ -105,7 +105,7 @@ struct mrb_parser_heredoc_info {
mrb_ast_node *doc;
};
-#define MRB_PARSER_TOKBUF_MAX 65536
+#define MRB_PARSER_TOKBUF_MAX (UINT16_MAX-1)
#define MRB_PARSER_TOKBUF_SIZE 256
/* parser structure */