[MPlayer-cvslog] r32508 - trunk/stream/network.c
reimar
subversion at mplayerhq.hu
Sun Oct 17 18:10:17 CEST 2010
Author: reimar
Date: Sun Oct 17 18:10:17 2010
New Revision: 32508
Log:
Fix possible crash for invalid http_proxy URLs like just
"http_proxy://".
Modified:
trunk/stream/network.c
Modified: trunk/stream/network.c
==============================================================================
--- trunk/stream/network.c Sun Oct 17 18:00:04 2010 (r32507)
+++ trunk/stream/network.c Sun Oct 17 18:10:17 2010 (r32508)
@@ -205,6 +205,10 @@ http_send_request( URL_t *url, off_t pos
if( !strcasecmp(url->protocol, "http_proxy") ) {
proxy = 1;
server_url = url_new( (url->file)+1 );
+ if (!server_url) {
+ mp_msg(MSGT_NETWORK, MSGL_ERR, "Invalid URL '%s' to proxify\n", url->file+1);
+ goto err_out;
+ }
http_set_uri( http_hdr, server_url->url );
} else {
server_url = url;
More information about the MPlayer-cvslog
mailing list