httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49276] New: mod_cgi allocates unnecessary amounts of memory
Date Wed, 12 May 2010 13:24:08 GMT

           Summary: mod_cgi allocates unnecessary amounts of memory
           Product: Apache httpd-2
           Version: 2.2.15
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: minor
          Priority: P2
         Component: mod_cgi

The function cgi_read_stdout() in mod_cgi allocates unnecessary amounts of
memory. For every call of apr_file_read(), APR_BUCKET_BUFF_SIZE (currently
8000) bytes of memory are allocated, even when apr_file_read() delivers only a
fraction of the requested amount of data. In practice, this can lead to hugely
inflated httpd processes. The attached patch reduces this problem by allocating
only as much memory as necessary.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message