[Dovecot] dspam plugin (and dovecot-dspam-plugin not launching dspam)

Timo Sirainen tss at iki.fi
Wed Apr 12 21:21:08 EEST 2006


On Wed, 2006-04-12 at 12:47 -0500, Ryan Kolak wrote:
> In trying to determine if the memory corruption was in creating the string
> or in storing it into our linked arrary, i first stored the result from
> p_strdup into a variable, inspected the results, and then had the normal
> line of code that called p_strdup again.

Here:

 142 typedef struct dspam_signature_list * siglist_t;
..
 153     n = p_malloc (pool, sizeof(siglist_t));

You're allocating sizeof(pointer) here.

That's one reason why typedefing pointers is evil. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20060412/7d4d1b26/attachment-0001.pgp


More information about the dovecot mailing list