]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1314: max allowed string width too small v9.1.1314
authorHirohito Higashi <h.east.727@gmail.com>
Thu, 17 Apr 2025 18:13:05 +0000 (20:13 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 17 Apr 2025 18:13:05 +0000 (20:13 +0200)
Problem:  max allowed string width too small
Solution: increased MAX_ALLOWED_STRING_WIDTH from 6400 to 1MiB
          (Hirohito Higashi)

closes: #17138

Co-authored-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/strings.c
src/version.c

index e1d23e387acb31f1d859665e79f163e10d3cf800..84bec92f7374bd8b71e8b6686ce82f9cb54b72c4 100644 (file)
@@ -2782,7 +2782,7 @@ format_overflow_error(const char *pstart)
        semsg(_(e_out_of_memory_allocating_nr_bytes), arglen);
 }
 
-#define MAX_ALLOWED_STRING_WIDTH 6400
+#define MAX_ALLOWED_STRING_WIDTH 1048576    // 1 MiB
 
     static int
 get_unsigned_int(
index ef28005d9e9384454a759e8837c8d2f8700ad74e..5ced0fefdd0c13c9c532eda8735eb14c6d85aef0 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1314,
 /**/
     1313,
 /**/