1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00
Files
archived-php-src/ext/standard
Christoph M. Becker edab9ad205 Fix #81400: Unterminated string in dns_get_record() results
If we assemble a zend_string manually, we need to end it with a NUL
byte ourselves.

We also fix the size calculation for that zend_string; there is no need
for the extra byte for each part, and we don't have to multiply by two,
since we're using DnsQuery_A(), not DnsQuery_W () (in which case we
would have to do the character set conversion, anyway).  This avoids
over-allocation, and the need to explicitly set the string length.

Finally, we use the proper access macro for zend_strings.

Closes GH-7427.
2021-08-30 18:49:39 +02:00
..
2020-08-05 15:44:00 +02:00
2019-08-20 21:42:06 +02:00
2019-07-11 12:04:29 +03:00
2019-07-16 16:44:37 +02:00
2020-10-05 10:46:46 +02:00
2020-10-26 11:05:22 +01:00
2019-02-03 21:03:00 +01:00
2020-04-14 15:16:26 +00:00
2020-04-14 15:16:26 +00:00
2018-09-18 05:32:08 +02:00
2018-09-18 05:32:08 +02:00
2020-06-24 12:22:07 +02:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-08-27 14:34:35 +02:00
2019-01-30 11:03:12 +02:00
2020-08-10 21:53:20 +02:00
2020-04-13 21:09:15 -07:00
2019-09-15 15:13:13 +02:00
2020-06-08 23:22:49 +02:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-11-08 08:02:49 -07:00
2019-06-19 15:09:00 +02:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-04-22 13:53:17 +02:00
2020-01-06 14:48:46 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-12-02 11:21:07 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-06-12 14:58:06 +02:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-06-28 00:05:55 +02:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-04-24 22:23:49 +03:00
2019-02-03 21:03:00 +01:00
2021-01-27 00:15:13 -08:00
2020-11-04 14:54:32 +01:00
2021-06-18 11:16:26 +02:00
2019-02-03 21:03:00 +01:00