mirror of
https://github.com/mpv-player/mpv
synced 2025-03-02 20:28:02 +00:00
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:
parent
886751550e
commit
ec18d784f3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user