diff src/testdir/test_spell.vim @ 27438:d0096a7f8d96 v8.2.4247

patch 8.2.4247: stack corruption when looking for spell suggestions Commit: https://github.com/vim/vim/commit/06f15416bb8d5636200a10776f1752c4d6e49f31 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 29 10:51:59 2022 +0000 patch 8.2.4247: stack corruption when looking for spell suggestions Problem: Stack corruption when looking for spell suggestions. Solution: Prevent the depth increased too much. Add a five second time limit to finding suggestions.
author Bram Moolenaar <Bram@vim.org>
date Sat, 29 Jan 2022 12:00:04 +0100
parents c59d60e21ef5
children 674240fcf6de
line wrap: on
line diff
--- 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=