Dominique Pelle wrote:
> I still see other Valgrind errors with spell suggestion with
> Vim-7.2.446 and Vim-7.3c (2448:943280505f72) when doing:
>
> $ valgrind --num-callers=50 --track-origins=yes 2> vg.log \
> vim -u NONE -c 'set spell|call feedkeys("i,,\<C-X>s")'
>
> ==4200== Conditional jump or move depends on uninitialised value(s)
> ==4200== at 0x8123C84: utf_head_off (mbyte.c:3290)
> ==4200== by 0x8198E00: suggest_trie_walk (spell.c:11666)
> ==4200== by 0x8197E64: suggest_try_change (spell.c:11229)
> ==4200== by 0x8197100: spell_suggest_intern (spell.c:10777)
> ==4200== by 0x8196D1E: spell_find_suggest (spell.c:10641)
> ==4200== by 0x81966A3: spell_suggest_list (spell.c:10494)
> ==4200== by 0x81A248D: expand_spelling (spell.c:16021)
> ==4200== by 0x806AD4E: ins_compl_get_exp (edit.c:4163)
> ==4200== by 0x806B793: ins_compl_next (edit.c:4506)
> ==4200== by 0x806C9DB: ins_complete (edit.c:5139)
> ==4200== by 0x80669B4: edit (edit.c:1366)
> ==4200== by 0x8134208: invoke_edit (normal.c:9024)
> ==4200== by 0x81341AE: nv_edit (normal.c:8997)
> ==4200== by 0x8127B87: normal_cmd (normal.c:1190)
> ==4200== by 0x80E8E97: main_loop (main.c:1260)
> ==4200== by 0x80E88CC: main (main.c:965)
> ==4200== Uninitialised value was created by a stack allocation
> ==4200== at 0x8197D56: suggest_try_change (spell.c:11204)
>
> Attached new patch fixes it but don't think it's ideal
> since giving spell suggestion when only typing punctuation
> does not make much sense.
Thanks. I'll include it as is.
While trying to reproduce this I encountered a crash: Soundfolding
breaks on a 0x300 character.
Perhaps there are a few more bugs in this area...
--
Team-building exercises come in many forms but they all trace their roots back
to the prison system. In your typical team-building exercise the employees
are subjected to a variety of unpleasant situations until they become either a
cohesive team or a ring of car jackers.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php