1
0
mirror of https://github.com/php/php-src.git synced 2026-04-02 21:52:36 +02:00
Files
archived-php-src/ext
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
..
2021-07-16 15:54:24 +02:00
2021-02-02 10:31:16 +01:00
2021-05-28 23:24:18 +02:00
2020-08-31 09:32:55 +02:00
2020-10-30 15:47:18 +01:00
2021-06-28 14:41:33 +02:00
2021-05-03 15:19:57 +02:00
2020-10-15 10:16:56 +02:00
2020-10-09 15:24:53 +02:00
2020-07-28 10:27:22 +02:00
2021-06-02 12:21:45 +02:00
2021-02-02 16:46:16 +01:00
2021-04-27 22:22:32 +02:00
2021-08-16 15:04:17 +02:00
2020-10-28 12:18:02 +01:00
2021-08-23 23:43:51 -07:00
2020-11-02 11:39:42 +01:00
2021-08-12 12:02:05 +02:00
2020-10-30 15:47:18 +01:00
2021-04-26 12:09:31 +02:00