<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>53801</bug_id>
          
          <creation_ts>2004-06-13 06:28 0000</creation_ts>
          <short_desc>aspell-0.50.5-r1 cannot create dictionaries</short_desc>
          <delta_ts>2004-06-16 10:34:07 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>53389</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>tom@tomaw.net</reporter>
          <assigned_to>seemant@gentoo.org</assigned_to>
          <cc>tradergt@smelser.org</cc>

      

      
          <long_desc isprivate="0">
            <who>tom@tomaw.net</who>
            <bug_when>2004-06-13 06:28:05 0000</bug_when>
            <thetext>The english dictionary created with the above version contains only 271 words.  0.50.0 works though.

Reproducible: Always
Steps to Reproduce:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>adam@bregenzer.net</who>
            <bug_when>2004-06-14 14:31:26 0000</bug_when>
            <thetext>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
&gt; #define WORD_BUFF_SIZE 256
&gt;
43a46
&gt;   int count = 0;
48c51,52
&lt;   } while (c = getc(in), c != EOF &amp;&amp; c &gt; 32);
---
&gt;     count++;
&gt;   } while (c = getc(in), c != EOF &amp;&amp; c &gt; 32 &amp;&amp; count &lt; (WORD_BUFF_SIZE - 1));
64,65c68,69
&lt;     char s1[256];
&lt;     char s2[256];
---
&gt;     char s1[WORD_BUFF_SIZE];
&gt;     char s2[WORD_BUFF_SIZE];
92c96
&lt;     char cur[256];
---
&gt;     char cur[WORD_BUFF_SIZE];
103c107
&lt;       while ((c = getc(stdin)) &gt; 32)
---
&gt;       while ((c = getc(stdin)) &gt; 32 &amp;&amp; i &lt; (WORD_BUFF_SIZE - 1)) {
104a109
&gt;       }


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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2004-06-16 10:34:07 0000</bug_when>
            <thetext>thanks Adam, it&apos;s in portage with aspell-0.50.5-r2</thetext>
          </long_desc>
      
    </bug>

</bugzilla>