https://issues.apache.org/bugzilla/show_bug.cgi?id=56385
Bug ID: 56385
Summary: strdup possible null pointer dereference
Product: Apache httpd-2
Version: 2.2.27
Hardware: PC
OS: other
Status: NEW
Severity: normal
Priority: P2
Component: Core
Assignee: [email protected]
Reporter: [email protected]
Unchecked Return Value to memcpy() on NOPOSIX systems
httpd-2.2.27/srclib/apr/strings/apr_cpystrn.c
#if !APR_HAVE_STRDUP
char *strdup(const char *str)
{
char *sdup;
size_t len = strlen(str) + 1;
sdup = (char *) malloc(len);
memcpy(sdup, str, len);
return sdup;
}
#endif
BR,
Maksymilian
cifrex.org
--
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]