aboutsummaryrefslogtreecommitdiffstats
path: root/Str.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2021-03-19 13:15:07 +0000
committerTatsuya Kinoshita <tats@debian.org>2021-03-19 13:15:07 +0000
commitec431544930cb804a77d2d93f4349b8afee000fe (patch)
tree96ad7e8ab309963a3333bdea39f160717f09f33d /Str.c
parentUpdate ChangeLog (diff)
downloadw3m-ec431544930cb804a77d2d93f4349b8afee000fe.tar.gz
w3m-ec431544930cb804a77d2d93f4349b8afee000fe.zip
Decrease STR_SIZE_MAX to prevent large memory usage
Diffstat (limited to 'Str.c')
-rw-r--r--Str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Str.c b/Str.c
index 5065847..444e404 100644
--- a/Str.c
+++ b/Str.c
@@ -26,7 +26,7 @@
#include "myctype.h"
#define INITIAL_STR_SIZE 32
-#define STR_SIZE_MAX (INT_MAX / 8)
+#define STR_SIZE_MAX (INT_MAX / 32)
#ifdef STR_DEBUG
/* This is obsolete, because "Str" can handle a '\0' character now. */