Re: Unsafe C++ memory allocation with new operator

From: Reuben Farrelly <reuben-squid-dev@dont-contact.us>
Date: Sun, 09 Jan 2005 12:13:24 +1300

At 11:18 a.m. 9/01/2005, Henrik Nordstrom wrote:
>There is nothing wrong with the patch. What is wrong is the
>RemovalPolicySettings class which does not have a constructor and leaves
>the object uninitialized. This then crashes when parsing as the parsing
>routines tries to free the old values (garbage).

I have had exactly this problem on Linux for the last few days - squid-3
was loading, trying to parse the config, and then aborting out. After that
latest commit by Henrik to structs.h, squid-3 now loads up just fine...

Thanks,
Reuben
Received on Sat Jan 08 2005 - 16:13:29 MST

This archive was generated by hypermail pre-2.1.9 : Tue Feb 01 2005 - 12:00:02 MST