tony2001 Mon Dec 25 22:12:47 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/standard streamsfuncs.c Log: MFH http://cvs.php.net/viewvc.cgi/php-src/ext/standard/streamsfuncs.c?r1=1.58.2.6.2.10&r2=1.58.2.6.2.11&diff_format=u Index: php-src/ext/standard/streamsfuncs.c diff -u php-src/ext/standard/streamsfuncs.c:1.58.2.6.2.10 php-src/ext/standard/streamsfuncs.c:1.58.2.6.2.11 --- php-src/ext/standard/streamsfuncs.c:1.58.2.6.2.10 Tue Dec 19 08:58:58 2006 +++ php-src/ext/standard/streamsfuncs.c Mon Dec 25 22:12:46 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: streamsfuncs.c,v 1.58.2.6.2.10 2006/12/19 08:58:58 dmitry Exp $ */ +/* $Id: streamsfuncs.c,v 1.58.2.6.2.11 2006/12/25 22:12:46 tony2001 Exp $ */ #include "php.h" #include "php_globals.h" @@ -361,7 +361,7 @@ RETURN_FALSE; } - read_buf = emalloc(to_read + 1); + read_buf = safe_emalloc(1, to_read, 1); recvd = php_stream_xport_recvfrom(stream, read_buf, to_read, flags, NULL, NULL, zremote ? &Z_STRVAL_P(zremote) : NULL,
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php