diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2021-03-19 13:15:07 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2021-03-19 13:15:07 +0000 |
commit | ec431544930cb804a77d2d93f4349b8afee000fe (patch) | |
tree | 96ad7e8ab309963a3333bdea39f160717f09f33d | |
parent | Update ChangeLog (diff) | |
download | w3m-ec431544930cb804a77d2d93f4349b8afee000fe.tar.gz w3m-ec431544930cb804a77d2d93f4349b8afee000fe.zip |
Decrease STR_SIZE_MAX to prevent large memory usage
-rw-r--r-- | Str.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |