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-06-08 15:36:37 +02:00
2020-10-07 13:25:11 +02:00
2020-10-26 11:54:45 +01:00
2021-02-02 10:31:16 +01:00
2021-07-19 15:07:01 +01:00
2021-05-28 23:24:18 +02:00
2021-05-26 13:19:34 +02:00
2020-08-31 09:32:55 +02:00
2020-10-30 15:47:18 +01:00
2020-11-24 14:01:15 +01:00
2021-06-28 14:41:33 +02:00
2021-05-03 15:19:57 +02:00
2021-08-26 18:38:17 +02:00
2020-08-07 14:37:43 +02:00
2020-10-15 10:16:56 +02:00
2020-10-09 15:24:53 +02:00
2021-08-17 10:33:39 +02:00
2021-07-05 18:11:30 +02:00
2021-07-20 00:25:50 +02:00
2020-07-28 10:27:22 +02:00
2021-06-02 12:21:45 +02:00
2021-05-04 18:37:40 +02:00
2021-08-10 00:05:39 +02:00
2021-07-27 11:50:28 +01: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
2021-08-04 18:41:04 +02:00
2021-04-12 12:12:40 +02:00
2021-07-12 18:33:55 +02:00
2020-10-28 12:18:02 +01:00
2021-06-27 21:36:55 -07:00
2021-05-14 11:54:49 +01:00
2020-08-31 11:08:26 +02:00
2021-07-28 10:51:38 +02:00
2021-04-29 11:59:16 +02:00
2020-08-31 11:08:26 +02:00
2021-04-20 18:29:12 +02:00
2021-08-23 23:43:51 -07:00
2021-04-11 10:37:40 +02:00
2021-01-07 13:46:09 +01:00
2021-02-25 20:53:14 +00:00
2021-03-23 13:12:19 +01:00
2021-07-23 17:46:42 +02:00
2021-04-26 21:02:03 -07:00
2020-11-02 11:39:42 +01:00
2021-03-29 14:17:55 +02:00
2021-08-12 12:02:05 +02:00
2020-08-14 15:52:15 +02:00
2021-04-13 16:49:06 +02:00
2020-08-21 15:45:51 +02:00
2021-08-30 18:49:39 +02:00
2021-08-18 16:35:16 +02:00
2020-11-22 14:02:29 +01:00
2021-08-13 17:33:58 +02:00
2021-05-03 12:26:37 +02:00
2020-10-30 15:47:18 +01:00
2021-05-07 19:15:29 +02:00
2021-04-26 12:09:31 +02:00