From: Gilles D. <gr...@sc...> - 2004-04-26 20:24:19
|
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: <gr...@sc...> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/ Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 3J7 (Canada) |