apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49847] apr_pcalloc should assert that memory is allocated
Date Tue, 31 Aug 2010 18:40:22 GMT

Jeff Trawick <trawick@apache.org> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #5 from Jeff Trawick <trawick@apache.org> 2010-08-31 14:40:20 EDT ---
>I don't think this changes the fact that there is a large
number of mod_'s that are using these methods without checking it is null

If you're talking about mod_'s for Apache httpd, note that it doesn't check
apr_palloc/pcalloc retcodes either before trying to use the pointers.

I'm marking this INVALID.  APR's API doesn't allow this to blow
up/assert/whatever unless the app uses the existing APR mechanism to handle
palloc/pcalloc failures under the covers: the abort function.  That is a
sufficient level of function AFAICT.

You'll have to lobby with your favorite apps to get them to figure out how to
use the abort function in a way that handles failures much better than at
present, without writing boatloads of code that almost never runs.

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org

View raw message