tony2001 Mon Dec 25 22:12:36 2006 UTC
Modified files:
/php-src/ext/standard streamsfuncs.c
Log:
use safe_emalloc()
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/streamsfuncs.c?r1=1.98&r2=1.99&diff_format=u
Index: php-src/ext/standard/streamsfuncs.c
diff -u php-src/ext/standard/streamsfuncs.c:1.98
php-src/ext/standard/streamsfuncs.c:1.99
--- php-src/ext/standard/streamsfuncs.c:1.98 Mon Dec 25 19:19:08 2006
+++ php-src/ext/standard/streamsfuncs.c Mon Dec 25 22:12:36 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: streamsfuncs.c,v 1.98 2006/12/25 19:19:08 tony2001 Exp $ */
+/* $Id: streamsfuncs.c,v 1.99 2006/12/25 22:12:36 tony2001 Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -369,7 +369,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 ? &remote_addr : NULL,
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php