memory usage [was: Forwarded [bogoutil]]

Dan Deward dan at cmsconnect.com
Thu Nov 20 23:08:32 CET 2003


Bogoutil has a memory leak for the -l (load file) option.

	token = word_new(buf, len);
	ds_read(dsh, token, &data);
	data.spamcount += spamcount;
	data.goodcount += goodcount;
	ds_write(dsh, token, &data);

There should be a word_free(token); after the ds_write.  Seems it should
also check the token against MAXTOKENLEN when reading from a file like
dump.load.inp

Dan

-----Original Message-----
From: Horst Scheuermann [mailto:Horst.Scheuermann at uni-trier.de] 
Sent: Wednesday, November 19, 2003 9:39 AM
To: David Relson
Cc: bogofilter-dev at aotto.com
Subject: Re: memory usage [was: Forwarded [bogoutil]]

On Wed, 19 Nov 2003, David Relson wrote:

> On Wed, 19 Nov 2003 14:59:20 +0100 (MET)
> Horst Scheuermann <Horst.Scheuermann at uni-trier.de> wrote:
>
> > On Wed, 19 Nov 2003, David Relson wrote:
> >
> > >
> > > Can you dump the databases?
> > >
> > > 	bogoutil -d goodlist.db > goodlist.txt
> >
> > loops terminated it with ctrl+C
> >
> > > 	bogoutil -d spamlist.db > spamlist.txt
> >
> > works
>
> Horst,
>

since bogoutil -d goodlist.db does not work, bogoupgrade also won't work,
so I will kill the old database and train it again
-- 
mfG
Horst Scheuermann  0651 201 3436





More information about the bogofilter-dev mailing list