[wp-trac] [WordPress Trac] #7456: Timeout in WP_Http_Streams::request causes Fatal error abort

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 2 15:28:35 GMT 2008


#7456: Timeout in WP_Http_Streams::request causes Fatal error abort
---------------------+------------------------------------------------------
 Reporter:  wet      |       Owner:  anonymous              
     Type:  defect   |      Status:  new                    
 Priority:  normal   |   Milestone:  2.7                    
Component:  General  |     Version:                         
 Severity:  normal   |    Keywords:  has-patch needs-testing
---------------------+------------------------------------------------------
 WP_Http_Streams::request() tries to
 [http://trac.wordpress.org/browser/trunk/wp-
 includes/http.php?rev=8524#L635 open a remote stream] with fopen() using
 the default timeout. The user-supplied value per $r is not applied.

 If this connection times out, the resulting $handle ist invalid.
 Nevertheless $handle is subsequently used as an input to
 [http://trac.wordpress.org/browser/trunk/wp-
 includes/http.php?rev=8524#L639 stream_set_timeout()].

 Attached patch applies a timeout to the fopen() context and catches an
 invalid $handle before use.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7456>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list