htdig/htdig-3.2.0b6-segv.patch
Davide Madrisan 49fba54f41 update to 3.2.0b6
security fixes [release 3.2.0b6-1mamba;Tue Dec 01 2009]
2024-01-05 23:43:40 +01:00

14 lines
608 B
Diff

diff -ru htdig-3.2.0b6/httools/htstat.cc htdig-3.2.0b6-fix/httools/htstat.cc
--- htdig-3.2.0b6/httools/htstat.cc 2004-05-28 15:15:25.000000000 +0200
+++ htdig-3.2.0b6-fix/httools/htstat.cc 2009-12-01 21:21:06.000000000 +0100
@@ -158,7 +158,8 @@
if(words.Open(config->Find("word_db"), O_RDONLY) == OK)
{
cout << "htstat: Total words: " << words.WordRefs()->Count() << endl;
- cout << "htstat: Total unique words: " << words.Words()->Count() << endl;
+ if (words.WordRefs()->Count() != 0)
+ cout << "htstat: Total unique words: " << words.Words()->Count() << endl;
words.Close();
}