Limit size and number of tables to prevent integer overflow

This commit is contained in:
Tatsuya Kinoshita
2021-04-03 19:40:24 +09:00
parent 8908705927
commit 58b26000a2
3 changed files with 27 additions and 7 deletions

View File

@@ -14,8 +14,10 @@
#include "Str.h"
#define MAX_TABLE 20 /* maximum nest level of table */
#define MAX_TABLE_N_LIMIT 2000
#define MAX_TABLE_N 20 /* maximum number of table in same level */
#define MAXROW_LIMIT 32767
#define MAXROW 50
#define MAXCOL 256