diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-08-01 15:47:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-08-01 15:47:35 +0200 |
commit | 7e88c3dc1987c9e2ae7d626c277add7ec7c6d401 (patch) | |
tree | dc992550b96c7c5cfd60ec1deaa13bb2bcda179a /src | |
parent | 00ec6854e3263161bb790dbe6a3a7c4a4f1d02a9 (diff) | |
download | vim-git-7e88c3dc1987c9e2ae7d626c277add7ec7c6d401.tar.gz |
Avoid illegal memory access in spell suggestion. (Dominique Pelle)
Diffstat (limited to 'src')
-rw-r--r-- | src/spell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spell.c b/src/spell.c index 8ae264df5..b7e91ae36 100644 --- a/src/spell.c +++ b/src/spell.c @@ -11658,7 +11658,7 @@ suggest_trie_walk(su, lp, fword, soundfold) * words, the edit distance and then add them. */ add_sound_suggest(su, preword, sp->ts_score, lp); } - else + else if (sp->ts_fidx > 0) { /* Give a penalty when changing non-word char to word * char, e.g., "thes," -> "these". */ |