0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.4245: ":retab 0" may cause illegal memory access

Problem:    ":retab 0" may cause illegal memory access.
Solution:   Limit the value of 'tabstop' to 10000.
This commit is contained in:
Bram Moolenaar
2022-01-28 20:47:49 +00:00
parent 14cbf77845
commit 652dee4486
5 changed files with 17 additions and 9 deletions

View File

@@ -2085,6 +2085,8 @@ typedef int sock_T;
#define DICT_MAXNEST 100 // maximum nesting of lists and dicts
#define TABSTOP_MAX 9999
#ifdef FEAT_CLIPBOARD
// VIM_ATOM_NAME is the older Vim-specific selection type for X11. Still