Jess Holle wrote:

Okay, the cause of this issue is now clear:

    util_ald_create_caches() does not set 'newcurl' to anything when any
    of the caches are null, which they all are when they're sized at zero.

The fix is also simple: add an 'else newcurl = NULL;' after the 'if' block in this routine.

Will fix (if nobody else has yet) - thanks for hunting this down.

[This really drives home why I have developed in Java for the last 5 years after spending 7+ years doing C and C++. This issue could not have occured in Java -- the compiler would have rejected the issue. I'm not saying the extra speed, etc, due to Apache being written in C is not nice. Nor due I wish to start some holy war. It's just that the lack of pointer / memory allocation issues, uninitialized variables, and not having to produce one's own APR to deal with platforms make Java a much more productive place for me.]

I am the same - if the job is either time constrained, or accuracy constrained, then I stick to Java. C is still king for apps where speed is an issue, but then that's at the cost of your hair sometimes.


Regards,
Graham
--



Reply via email to