string.c: new configuration MRB_STR_LENGTH_MAX.

The default value is 1MB. If you want to avoid the limitation, set this
value to 0.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-07-25 08:09:13 +09:00
parent 199758c0b9
commit c4cb416460
2 changed files with 24 additions and 0 deletions
+5
View File
@@ -107,6 +107,11 @@
/* string class to handle UTF-8 encoding */
//#define MRB_UTF8_STRING
/* maximum length of strings */
/* the default value is 1MB */
/* set this value to zero to skip the check */
//#define MRB_STR_LENGTH_MAX 1048576
/* argv max size in mrb_funcall */
//#define MRB_FUNCALL_ARGC_MAX 16