From ec431544930cb804a77d2d93f4349b8afee000fe Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Fri, 19 Mar 2021 22:15:07 +0900 Subject: Decrease STR_SIZE_MAX to prevent large memory usage --- Str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- cgit v1.2.3