tony2001 Wed Dec 20 13:09:02 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/curl streams.c Log: MFH http://cvs.php.net/viewvc.cgi/php-src/ext/curl/streams.c?r1=1.14.2.2.2.9&r2=1.14.2.2.2.10&diff_format=u Index: php-src/ext/curl/streams.c diff -u php-src/ext/curl/streams.c:1.14.2.2.2.9 php-src/ext/curl/streams.c:1.14.2.2.2.10 --- php-src/ext/curl/streams.c:1.14.2.2.2.9 Fri Sep 15 15:42:53 2006 +++ php-src/ext/curl/streams.c Wed Dec 20 13:09:02 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: streams.c,v 1.14.2.2.2.9 2006/09/15 15:42:53 tony2001 Exp $ */ +/* $Id: streams.c,v 1.14.2.2.2.10 2006/12/20 13:09:02 tony2001 Exp $ */ /* This file implements cURL based wrappers. * NOTE: If you are implementing your own streams that are intended to @@ -87,6 +87,11 @@ php_curl_stream *curlstream = (php_curl_stream *) stream->abstract; TSRMLS_FETCH(); + if (length < 2) { + /* invalid header ? */ + return length; + } + if (!(length == 2 && data[0] == '\r' && data[1] == '\n')) { MAKE_STD_ZVAL(header); Z_STRLEN_P(header) = length;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php