patch 9.1.1314: max allowed string width too small
Commit:
https://github.com/vim/vim/commit/06fdfa11c565599ac13ad5c077d1dabbbfde03ac
Author: Hirohito Higashi <[email protected]>
Date: Thu Apr 17 20:13:05 2025 +0200
patch 9.1.1314: max allowed string width too small
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 <[email protected]>
Signed-off-by: Hirohito Higashi <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/strings.c b/src/strings.c
index e1d23e387..84bec92f7 100644
--- a/src/strings.c
+++ b/src/strings.c
@@ -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(
diff --git a/src/version.c b/src/version.c
index ef28005d9..5ced0fefd 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1314,
/**/
1313,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1u5TlQ-008wHA-4r%40256bit.org.