remote exploitable heap overflow fix by ("blexim" <blexim at hush dot com>)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12084 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2004-03-30 10:58:41 +00:00
parent 886751550e
commit ec18d784f3
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ http_build_request( HTTP_header_t *http_hdr ) {
if( http_hdr->method==NULL ) http_set_method( http_hdr, "GET");
if( http_hdr->uri==NULL ) http_set_uri( http_hdr, "/");
else {
uri = (char*)malloc(strlen(http_hdr->uri)*2);
uri = (char*)malloc((strlen(http_hdr->uri)*3) + 1);
if( uri==NULL ) {
mp_msg(MSGT_NETWORK,MSGL_ERR,"Memory allocation failed\n");
return NULL;