[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#644506: hunspell: crash with some morphological fields combination



Package: hunspell
Version: 1.2.14-4
Severity: important
Tags: fixed-in-experimental

Dear Maintainer,

hunspell crash on some wrong words if some morphological fields combinations are present in the affix file. Note that you have crash only on some wrong words.

Note that this crash can be reproducible in (i think all) applications that use hunspell spellchecker (i.e. LibreOffice, that I have tested: you have a crash if you right click at some red underscored words).

Workaround: if you remove all morphological fields from affix file there is no more crash.

This bug seem to be fixed with hunspell 1.3.2, please let it go to sid and testing and let all application depend on it.

I reported this bug to let people understand why some applications crash in spell checking tasks and how to resolve it (workaround).

Steps to reproduce the crash are the followings:

1) create b.aff file as:

----8<------8<------b.aff------8<------8<------8<--
SET UTF-8
FLAG UTF-8
FULLSTRIP
TRY iaoenrltcsugdzhmCBMSbPpvGAfFTDLRkVZNyIKOjEHwJUqWQx'àèòYìXùé'ÌÈÉÀÙ


SFX 1 Y 5
SFX 1 re 0/7 are tv:pre3s tv:ipr2s
SFX 1 are erai [^cgi]are tv:fut2s
SFX 1 iare erai iare tv:fut2s
SFX 1 are herai [cg]are tv:fut2s
SFX 1 are erà [^cgi]are tv:fut3s

SFX 6 Y 1
SFX 6 e 0/0 e tv:inftr

SFX 7 Y 1
SFX 7 0 ci .
----8<------8<------b.aff------8<------8<------8<--


2) create b.dic file as:
----8<------8<------b.dic------8<------8<------8<--
1
bacare/1
----8<------8<------b.dic------8<------8<------8<--

3) create test file  as:
----8<------8<------test------8<------8<------8<--
aci
----8<------8<------test------8<------8<------8<--

4) generate the crash
$ hunspell -d b test

Ciao
Davide

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages hunspell depends on:
ii  libc6                               2.13-21
ii  libgcc1                             1:4.6.1-4
ii  libhunspell-1.2-0                   1.2.14-4
ii  libncurses5                         5.9-2
ii  libncursesw5                        5.9-2
ii  libreadline6                        6.2-4
ii  libstdc++6                          4.6.1-4
ii  myspell-en-us [myspell-dictionary]  1:3.3.0-3

hunspell recommends no packages.

hunspell suggests no packages.

-- no debconf information

--
Dizionari: http://linguistico.sourceforge.net/wiki
Fate una prova di guida ... e tenetevi la macchina!:
http://linguistico.sf.net/wiki/doku.php?id=usaooo2
Non autorizzo la memorizzazione del mio indirizzo su outlook





Reply to: