Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53801 - aspell-0.50.5-r1 cannot create dictionaries
Summary: aspell-0.50.5-r1 cannot create dictionaries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 53389
  Show dependency tree
 
Reported: 2004-06-13 06:28 UTC by Tom Wesley
Modified: 2004-06-16 10:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Wesley 2004-06-13 06:28:05 UTC
The english dictionary created with the above version contains only 271 words.  0.50.0 works though.

Reproducible: Always
Steps to Reproduce:
Comment 1 Adam Bregenzer 2004-06-14 14:31:26 UTC
I am having the same problem and after some investigation I found word-list-compress to be the culprit.  Specifically, the aspell-buffer-fix.patch patch applied to fix Bug 53389 is incorrect and instead of fixing the security hole actually cripples world-list-compress.  Below is a new patch that should correctly fix both bugs:

30a31,32
> #define WORD_BUFF_SIZE 256
>
43a46
>   int count = 0;
48c51,52
<   } while (c = getc(in), c != EOF && c > 32);
---
>     count++;
>   } while (c = getc(in), c != EOF && c > 32 && count < (WORD_BUFF_SIZE - 1));
64,65c68,69
<     char s1[256];
<     char s2[256];
---
>     char s1[WORD_BUFF_SIZE];
>     char s2[WORD_BUFF_SIZE];
92c96
<     char cur[256];
---
>     char cur[WORD_BUFF_SIZE];
103c107
<       while ((c = getc(stdin)) > 32)
---
>       while ((c = getc(stdin)) > 32 && i < (WORD_BUFF_SIZE - 1)) {
104a109
>       }


I have checked the resulting binary against the checks in Bug 53389 as well as against the en-only.cwl in aspell-en-0.51-1.tar.bz2 and all behaves as expected.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2004-06-16 10:34:07 UTC
thanks Adam, it's in portage with aspell-0.50.5-r2