ElectricFence
David Relson
relson at osagesoftware.com
Fri Jan 10 05:32:05 CET 2003
Matthias,
An interesting finding with ElectricFence. As I suspect you know,
ElectricFence complains about three of the regression tests, specifically
t.integrity, t.integrity2, and t.ignore_spam_header.
What's interesting about these tests is that bogofilter is run with input
that doesn't contain any tokens. When the code gets to rstats_print()
there are 0 tokens to print. This function allocates memory so it can sort
the array of tokens. With no tokens, the allocation call becomes
xcalloc(0, 4). By forcing the count to 1 (instead of 0), all the tests
PASS with ElectricFence becomes happy with this test.
I'll figure out the proper patch for this issue.
David
--------------------------------------------------------
David Relson Osage Software Systems, Inc.
relson at osagesoftware.com Ann Arbor, MI 48103
www.osagesoftware.com tel: 734.821.8800
More information about the bogofilter-dev
mailing list