aboutsummaryrefslogtreecommitdiffstats
path: root/table.h
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2021-04-03 10:40:24 +0000
committerTatsuya Kinoshita <tats@debian.org>2021-04-03 10:40:24 +0000
commit58b26000a214d64f6b3ee1522cbbd7a4e07080a0 (patch)
tree6ea40276e78db668807a4ed5246a899eba255670 /table.h
parentUpdate ChangeLog (diff)
downloadw3m-58b26000a214d64f6b3ee1522cbbd7a4e07080a0.tar.gz
w3m-58b26000a214d64f6b3ee1522cbbd7a4e07080a0.zip
Limit size and number of tables to prevent integer overflow
Diffstat (limited to 'table.h')
-rw-r--r--table.h2
1 files changed, 2 insertions, 0 deletions
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