diff -Nru libvoikko-3.3/debian/changelog libvoikko-3.3/debian/changelog --- libvoikko-3.3/debian/changelog 2011-09-23 09:20:33.000000000 +0300 +++ libvoikko-3.3/debian/changelog 2011-09-23 18:02:54.000000000 +0300 @@ -1,3 +1,10 @@ +libvoikko (3.2-1ubuntu1) oneiric; urgency=low + + * Add patch from upstream to fix a mozvoikko crasher (Closes: #642525) + - See http://lists.puimula.org/pipermail/voikko/2011-September/001624.html + + -- Timo Jyrinki Fri, 23 Sep 2011 18:00:41 +0300 + libvoikko (3.2-1) unstable; urgency=low * New upstream release diff -Nru libvoikko-3.3/debian/patches/fix_crasher_when_using_mozvoikko.patch libvoikko-3.3/debian/patches/fix_crasher_when_using_mozvoikko.patch --- libvoikko-3.3/debian/patches/fix_crasher_when_using_mozvoikko.patch 1970-01-01 02:00:00.000000000 +0200 +++ libvoikko-3.3/debian/patches/fix_crasher_when_using_mozvoikko.patch 2011-09-23 18:03:22.000000000 +0300 @@ -0,0 +1,11 @@ +--- libvoikko/src/spellchecker/FinnishSpellerTweaksWrapper.cpp 2011/04/03 14:34:25 3855 ++++ libvoikko/src/spellchecker/FinnishSpellerTweaksWrapper.cpp 2011/09/23 14:19:19 4015 +@@ -92,7 +92,7 @@ + if (word[i] == L'-') { + spellresult leadingResult = spell(word, i); + if (leadingResult != SPELL_FAILED) { +- list * trailingAnalyses = analyzer->analyze(word + i + 1); ++ list * trailingAnalyses = analyzer->analyze(word + i + 1, wlen - (i + 1)); + list::const_iterator it = trailingAnalyses->begin(); + bool isTrailingAcceptable = false; + while (it != trailingAnalyses->end()) { diff -Nru libvoikko-3.3/debian/patches/series libvoikko-3.3/debian/patches/series --- libvoikko-3.3/debian/patches/series 1970-01-01 02:00:00.000000000 +0200 +++ libvoikko-3.3/debian/patches/series 2011-09-23 18:01:55.000000000 +0300 @@ -0,0 +1 @@ +fix_crasher_when_using_mozvoikko.patch