1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 15:38:49 +02:00
Files
archived-php-src/ext/standard
Christoph M. Becker 53797c206a Fix #78210: Invalid pointer address
This is actually about three distinct issues:

* If an empty string is passed as $address to `stream_socket_sendto()`,
  the `sa` is not initialized, so we must not pass it as `addr` to
  `php_stream_xport_sendto()`.

* On POSIX, `recvfrom()` truncates messages which are too long to fit
  into the specified buffer (unless `MSG_PEEK` is given), discards the
  excessive bytes, and returns the buffer length.  On Windows, the same
  happens, but `recvfrom()` returns `SOCKET_ERROR` with the error code
  `WSAEMSGSIZE`.  We have to catch this for best POSIX compatibility.

* In `php_network_parse_network_address_with_port()`, we have to zero
  `in6` (not only its alias `sa`) to properly support IPv6.

Co-Authored-By: Nikita Popov <nikita.ppv@googlemail.com>
2020-03-11 11:30:15 +01:00
..
2019-11-07 11:16:24 +01:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-12-23 20:20:53 +01:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2019-08-14 19:24:16 +02:00
2018-01-04 02:38:32 -02:00
2018-11-01 18:35:32 +02:00
2018-11-01 18:35:32 +02:00
2018-03-19 14:38:41 +01:00
2018-03-19 14:38:41 +01:00
2018-11-01 18:35:32 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-11-01 18:35:32 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-11-01 18:35:32 +02:00
2019-01-06 12:23:53 -08:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2019-09-14 18:47:12 +02:00
2019-09-15 15:13:13 +02:00
2018-12-03 10:20:07 -08:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2019-06-19 12:42:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2019-02-12 10:50:22 +01:00
2018-11-01 18:35:32 +02:00
2018-11-01 18:35:32 +02:00
2019-01-30 17:09:12 +01:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-08-01 16:19:54 +02:00
2019-12-02 11:19:15 +01:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-11-01 18:35:32 +02:00
2018-11-01 18:35:32 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-11-01 18:35:32 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2019-04-06 19:06:16 -07:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00
2018-07-25 00:53:25 +02:00