From 58b26000a214d64f6b3ee1522cbbd7a4e07080a0 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sat, 3 Apr 2021 19:40:24 +0900 Subject: Limit size and number of tables to prevent integer overflow --- table.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'table.h') diff --git a/table.h b/table.h index df03143..7bfb838 100644 --- a/table.h +++ b/table.h @@ -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 -- cgit v1.2.3