diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-01-26 16:36:05 +0100 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2022-01-26 21:34:26 +0100 |
commit | de673966c3b681e8354a26a1f054fbda6e07294a (patch) | |
tree | d0b66941a1966891d970a2fe16d903b76195ea72 /src/nvim/ex_getln.c | |
parent | 17e2938b100070d91bd956c8734760ca16f6d3f2 (diff) | |
download | rneovim-de673966c3b681e8354a26a1f054fbda6e07294a.tar.gz rneovim-de673966c3b681e8354a26a1f054fbda6e07294a.tar.bz2 rneovim-de673966c3b681e8354a26a1f054fbda6e07294a.zip |
vim-patch:8.2.4214: illegal memory access with large 'tabstop' in Ex mode
Problem: Illegal memory access with large 'tabstop' in Ex mode.
Solution: Allocate enough memory.
https://github.com/vim/vim/commit/85b6747abc15a7a81086db31289cf1b8b17e6cb1
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 78b8e43e65..fd75cfc7f8 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -772,7 +772,7 @@ static uint8_t *command_line_enter(int firstc, long count, int indent) ccline.cmdindent = (s->firstc > 0 ? s->indent : 0); // alloc initial ccline.cmdbuff - alloc_cmdbuff(exmode_active ? 250 : s->indent + 1); + alloc_cmdbuff(indent + 50); ccline.cmdlen = ccline.cmdpos = 0; ccline.cmdbuff[0] = NUL; |