diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-04 15:46:05 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-04 15:46:05 +0000 |
commit | 15d9890eee53afc61eb0a03b878a19cb5672f732 (patch) | |
tree | 3f784dedd6d11db994fbb6440e10fe4838ec2314 /src/testdir/test_spell.vim | |
parent | 0b5b06cb4777d1401fdf83e7d48d287662236e7e (diff) |
patch 8.2.3582: reading uninitialized memory when giving spell suggestionsv8.2.3582
Problem: Reading uninitialized memory when giving spell suggestions.
Solution: Check that preword is not empty.
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 a3a9621cb0..b7437fd448 100644 --- a/src/testdir/test_spell.vim +++ b/src/testdir/test_spell.vim @@ -839,6 +839,14 @@ func Test_spell_screendump() call delete('XtestSpell') endfunc +func Test_spell_single_word() + new + silent! norm 0R00 + spell! ß + silent 0norm 0r$ Dvz= + bwipe! +endfunc + let g:test_data_aff1 = [ \"SET ISO8859-1", \"TRY esianrtolcdugmphbyfvkwjkqxz-\xEB\xE9\xE8\xEA\xEF\xEE\xE4\xE0\xE2\xF6\xFC\xFB'ESIANRTOLCDUGMPHBYFVKWJKQXZ", |