1
0
mirror of https://github.com/php/php-src.git synced 2026-04-08 08:33:06 +02:00
This commit is contained in:
Antony Dovgal
2006-12-25 22:12:46 +00:00
parent 7dc7882745
commit 6ac8ffdfea

View File

@@ -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,