diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-29 10:51:59 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-29 10:51:59 +0000 |
commit | 06f15416bb8d5636200a10776f1752c4d6e49f31 (patch) | |
tree | 65ebdd6be53eb416d3550989d9fc5004e4fe7fb6 /src/testdir/test_spell.vim | |
parent | e96eea7b6a56bc7c12e062e90b2e816ff61e705c (diff) |
patch 8.2.4247: stack corruption when looking for spell suggestionsv8.2.4247
Problem: Stack corruption when looking for spell suggestions.
Solution: Prevent the depth increased too much. Add a five second time
limit to finding suggestions.
Diffstat (limited to 'src/testdir/test_spell.vim')
-rw-r--r-- | src/testdir/test_spell.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_spell.vim b/src/testdir/test_spell.vim index 3c32450c24..a5c990ab72 100644 --- a/src/testdir/test_spell.vim +++ b/src/testdir/test_spell.vim @@ -773,6 +773,14 @@ func Test_spell_long_word() set nospell endfunc +func Test_spellsuggest_too_deep() + " This was incrementing "depth" over MAXWLEN. + new + norm s000G00ý000000000000 + sil norm ..vzG................vvzG0 v z= + bwipe! +endfunc + func LoadAffAndDic(aff_contents, dic_contents) set enc=latin1 set spellfile= |