summaryrefslogtreecommitdiffstats
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-28 20:47:49 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-28 20:47:49 +0000
commit652dee448618589de5528a9e9a36995803f5557a (patch)
treea659b1d0a7f5409943f2c626e2a87cde520c3733 /src/vim.h
parent14cbf77845624e4bfc28a65a5debb81864cba2cf (diff)
patch 8.2.4245: ":retab 0" may cause illegal memory accessv8.2.4245
Problem: ":retab 0" may cause illegal memory access. Solution: Limit the value of 'tabstop' to 10000.
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vim.h b/src/vim.h
index 15ed6262d9..86acb6dcda 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -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