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

2011-10-06 Thread Davide Prina

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  libncursesw55.9-2
ii  libreadline66.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





--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



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

2011-10-06 Thread Rene Engelhard
Version: 1.3.2-1

Hi,

On Thu, Oct 06, 2011 at 03:22:24PM +0200, Davide Prina wrote:
 Package: hunspell
 Version: 1.2.14-4
 Severity: important
 Tags: fixed-in-experimental
[...]
 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).

so it's a bug in libhunspell, not hunspell ;-)

 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 would have done already months ago, see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635515, maybe you want
to convince them to allow the transition it now that python-defaults is in?

Grüße/Regards,

René
-- 
 .''`.  René Engelhard -- Debian GNU/Linux Developer
 : :' : http://www.debian.org | http://people.debian.org/~rene/
 `. `'  r...@debian.org | GnuPG-Key ID: D03E3E70
   `-   Fingerprint: E12D EA46 7506 70CF A960 801D 0AA0 4571 D03E 3E70



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



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

2011-10-06 Thread Rene Engelhard
On Thu, Oct 06, 2011 at 03:46:14PM +0200, Rene Engelhard wrote:
 I would have done already months ago, see
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635515, maybe you want
 to convince them to allow the transition it now that python-defaults is in?

Updated list of affected packages:

# grep-available -FDepends libhunspell-1.2-0 -sPackage
Package: focuswriter
Package: xulrunner-1.9.1
Package: libenchant1c2a
Package: tea
Package: licq-plugin-qt4
Package: libhunspell-dev
Package: mudlet
Package: iceape-browser
Package: xulrunner-5.0
Package: lokalize
Package: texworks
Package: icedove
Package: libreoffice-core
Package: xulrunner-6.0
Package: goldendict
Package: xulrunner-7.0

Grüße/Regards,
 
René
-- 
 .''`.  René Engelhard -- Debian GNU/Linux Developer
 : :' : http://www.debian.org | http://people.debian.org/~rene/
 `. `'  r...@debian.org | GnuPG-Key ID: D03E3E70
   `-   Fingerprint: E12D EA46 7506 70CF A960 801D 0AA0 4571 D03E 3E70



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



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

2011-10-06 Thread Rene Engelhard
Hi,

On Thu, Oct 06, 2011 at 03:46:14PM +0200, Rene Engelhard wrote:
  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 would have done already months ago, see
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635515, maybe you want
 to convince them to allow the transition it now that python-defaults is in?

That said, it got approved now. Will upload the new version to sid now
and the various applications will be rebuilt somewhen in the next days...

Grüße/Regards,

René



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org