[Dovecot] Another dovecot-antispam plugin can't call dspam
johannes at sipsolutions.net
Tue Nov 11 13:13:57 EET 2008
On Tue, 2008-11-11 at 01:16 +0100, Eugene wrote:
> > Thanks, I've added the Makefile patch, but the other one I'm not too
> > sure about, it seems it would print things twice if the loop actually
> > looped, so I left it for now. Also, your code can access
> > buf[sizeof(buf)] which would be a buffer overrun.
> My idea was that if the loop actually loops (i.e. more that 1024 bytes
> returned), we just log several lines in debug log.
> Sorry for buffer overrun, we have to check readsize of course.
> Or just pass sizeof(buf)-1 to read()
Yeah, somehow I got confused, I've added this now.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20081111/353be51a/attachment.bin
More information about the dovecot