httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49276] New: mod_cgi allocates unnecessary amounts of memory
Date Wed, 12 May 2010 13:24:08 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49276

           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
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: ak@synflood.at


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: 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@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message