mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
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#1713806fdfa11c5
Co-authored-by: Hirohito Higashi <h.east.727@gmail.com> Co-authored-by: John Marriott <basilisk@internode.on.net> (cherry picked from commitccdb37b075
)
This commit is contained in:
committed by
github-actions[bot]
parent
248528c907
commit
4205fdee1d
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user