From: Antony Dovgal Date: Mon, 25 Dec 2006 22:12:46 +0000 (+0000) Subject: MFH X-Git-Tag: php-5.2.1RC2~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ac8ffdfea108696fe32b4738b779a00d2d4328c;p=php MFH --- diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 3fbc4dd6ba..efd71e0e84 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -361,7 +361,7 @@ PHP_FUNCTION(stream_socket_recvfrom) 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,