ElectricFence
Graham Wilson
bob at decoy.wox.org
Fri Jan 10 14:30:31 CET 2003
On Thu, Jan 09, 2003 at 11:32:05PM -0500, David Relson wrote:
> 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.
do you mean that you are forcing count to in in xmalloc()?
--
gram
More information about the bogofilter-dev
mailing list