https://bz.apache.org/bugzilla/show_bug.cgi?id=63967
Bug ID: 63967
Summary: Missing out-of-memory check in create_process()
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Platform
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
In create_process() (server/mpm/winnt/mpm_winnt.c), a call to malloc is never
checked for success:
>args = malloc((ap_server_conf->process->argc + 1) * sizeof (char*));
We should add a check, like:
if (!args) {
ap_log_error(APLOG_MARK, APLOG_CRIT, ERROR_NOT_ENOUGH_MEMORY, ap_server_conf,
APLOGNO(00XXX)
"Parent: Cannot allocate memory");
apr_pool_destroy(ptemp);
return -1;
}
Same after
>args[0] = malloc(strlen(cmd) + 1);
--
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]