mirror of
https://github.com/php/php-src.git
synced 2026-04-08 08:33:06 +02:00
MFH
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user