4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Accessing uninitialized memory when finding spell suggestions.
12 Solution: Don't try swapping characters at the end of a word.
16 *** ../vim-7.1.050/src/spell.c Tue Jul 24 10:44:10 2007
17 --- src/spell.c Sun Aug 5 16:59:48 2007
23 ! if (!soundfold && !spell_iswordp(p + n, curbuf))
24 c2 = c; /* don't swap non-word char */
26 c2 = mb_ptr2char(p + n);
33 ! else if (!soundfold && !spell_iswordp(p + n, curbuf))
34 c2 = c; /* don't swap non-word char */
36 c2 = mb_ptr2char(p + n);
42 ! if (!soundfold && !spell_iswordp(p + 1, curbuf))
43 c2 = c; /* don't swap non-word char */
48 /* When characters are identical, swap won't do anything.
55 ! else if (!soundfold && !spell_iswordp(p + 1, curbuf))
56 c2 = c; /* don't swap non-word char */
61 + /* When the second character is NUL we can't swap. */
64 + sp->ts_state = STATE_REP_INI;
68 /* When characters are identical, swap won't do anything.
69 *** ../vim-7.1.050/src/version.c Sat Aug 4 12:14:04 2007
70 --- src/version.c Sun Aug 5 18:31:09 2007
74 { /* Add new patch number below this line */
80 From "know your smileys":
81 8<}} Glasses, big nose, beard
83 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
84 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
85 \\\ download, build and distribute -- http://www.A-A-P.org ///
86 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///