From 4205fdee1d94dfd54c73da6231c0985b314c240f Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 18 Apr 2025 06:49:42 +0800 Subject: [PATCH] vim-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: vim/vim#17138 https://github.com/vim/vim/commit/06fdfa11c565599ac13ad5c077d1dabbbfde03ac Co-authored-by: Hirohito Higashi Co-authored-by: John Marriott (cherry picked from commit ccdb37b075c6804cece245a58d766efb0f6a22f2) --- src/nvim/strings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/strings.c b/src/nvim/strings.c index add4c9dcb6..0538ee2b22 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -1027,7 +1027,7 @@ static void format_overflow_error(const char *pstart) xfree(argcopy); } -enum { MAX_ALLOWED_STRING_WIDTH = 6400, }; +enum { MAX_ALLOWED_STRING_WIDTH = 1048576, }; // 1MiB static int get_unsigned_int(const char *pstart, const char **p, unsigned *uj, bool overflow_err) {