diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-25 11:55:02 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-25 11:55:02 +0000 |
commit | 85b6747abc15a7a81086db31289cf1b8b17e6cb1 (patch) | |
tree | 5fbac72647079ea80b7a09895c9cd2ff4e62f0db /src/ex_getln.c | |
parent | 76687d27173e64d739ea371751697c03ad0821ef (diff) |
patch 8.2.4214: illegal memory access with large 'tabstop' in Ex modev8.2.4214
Problem: Illegal memory access with large 'tabstop' in Ex mode.
Solution: Allocate enough memory.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 5dc43d845d..097b97eeb3 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -1513,7 +1513,7 @@ init_ccline(int firstc, int indent) ccline.cmdindent = (firstc > 0 ? indent : 0); // alloc initial ccline.cmdbuff - alloc_cmdbuff(exmode_active ? 250 : indent + 1); + alloc_cmdbuff(indent + 50); if (ccline.cmdbuff == NULL) return FAIL; ccline.cmdlen = ccline.cmdpos = 0; |