12 Apr
2006
12 Apr
'06
9:21 p.m.
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. :)