Menu

#56 SIGSEGV when using UTF-8 and experimental features

Unstable (example)
closed-accepted
None
5
2014-10-16
2013-01-13
Anonymous
No

In UTF-8 mode, when Hunspell::suggest_auto is passed a word with capital letters, a segmentation fault happens in mkallsmall. It is indicated in hunspell.cxx that at least three experimental functions, suggest_auto, suggest_with_stems and morph_with_correction does not support UTF-8.

I attached a patch that modifies these functions to use mkallsmall2 instead of mkallsmall. I tested with en_US and hu_HU dictionaries. The behaviour now seems to be correct to me. (Although I don't really know what suggest_with_stems and morph_with_correction is supposed to do.)

Discussion

  • caolan mcnamara

    caolan mcnamara - 2014-10-16
    • status: open --> closed-accepted
    • assigned_to: caolan mcnamara
    • Group: --> Unstable (example)