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: [email protected]
ReportedBy: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]