Thanks, Alex.  I've applied your fix to the 3.2 CVS tree.

According to Alex Kiesel:
> On Thu, 2004-04-22 at 19:02, Alex Kiesel wrote:
> > htfuzzy soundex then segfaults. I ran it with strace:
> > $ strace htfuzzy -v soundex -c /etc/htdig/htdig.conf
> 
> I've produced a more informational backtrace by compiling it from source
> and trying again. The problem occurs when one has activated the option
> 
> allow_numbers:                true
> 
> and tried to run 'htfuzzy soundex' on the database files. As numbers
> from a string are being skipped in Soundex::generateKey(), a segfault
> occurs as the char *word is being increased by
> 
> while (!isalpha(*word))
>   word++;
> 
> if the given word contains numbers only (or: contains only nonalpha
> chars, to be precise).
> 
> The attached diff[1] fixes this problem for me, it's a diff against
> htdig 3.1.6, file htdig-3.1.6/htfuzzy/Soundex.cc
> 
> Regards,
> -Alex
> 
> [1] Also at:
> http://document-root.de/patches/htdig-htfuzzy-segfault-20040423.diff

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to