commit | 7e88c3dc1987c9e2ae7d626c277add7ec7c6d401 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Aug 01 15:47:35 2010 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Aug 01 15:47:35 2010 +0200 |
tree | dc992550b96c7c5cfd60ec1deaa13bb2bcda179a | |
parent | 00ec6854e3263161bb790dbe6a3a7c4a4f1d02a9 [diff] |
Avoid illegal memory access in spell suggestion. (Dominique Pelle)
diff --git a/src/spell.c b/src/spell.c index 8ae264d..b7e91ae 100644 --- a/src/spell.c +++ b/src/spell.c
@@ -11658,7 +11658,7 @@ * 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". */