Somehow the message just went to Sander !
-Madhu
-----Original Message-----
From: Mathihalli, Madhusudan Sent: Friday, March 19, 2004 11:01 AM
To: 'Sander Striker'
Subject: RE: SEGV in allocator_free
-----Original Message----- From: Sander Striker [mailto:[EMAIL PROTECTED]
[SNIP]
But shouldn't APR protect itself against NULL pointers in
allocator_free ?
And then what? abort()?
YES ! IMHO applications shouldn't SEGFAULT - expecially functions like allocator_free() !
They should bail-out with a error message.
Continuing to do stuff when you are in an unknown state is a security risk - segfaulting is far safer than printing error messages, sadly.
Cheers,
Ben.