Fixed a buffer overflow due to a bug in the calculation of the
CONTENT-TYPE header line size, the length was beeing calculated with the wrong string, there was a missing colon. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@434 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
@@ -1269,15 +1269,13 @@ process_request( IN http_message_t * req,
|
||||
}
|
||||
|
||||
} else {
|
||||
//
|
||||
// try using alias
|
||||
//
|
||||
/* try using alias */
|
||||
if (is_valid_alias(&gAliasDoc)) {
|
||||
alias_grab(alias);
|
||||
alias_grabbed = TRUE;
|
||||
using_alias = get_alias(request_doc, alias, finfo);
|
||||
if (using_alias == TRUE) {
|
||||
UpnpFileInfo_set_ContentType(finfo, "text/xml");
|
||||
UpnpFileInfo_set_ContentType(finfo, "text/xml; charset=\"utf-8\"");
|
||||
if (UpnpFileInfo_get_ContentType(finfo) == NULL) {
|
||||
goto error_handler;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user