Tony Finch
e8ff0f0c08
Correct value of DNS_NAME_MAXLABELS
...
It should be floor(DNS_NAME_MAXWIRE / 2) + 1 == 128
The mistake was introduced in c6bf51492d because:
* I was refactoring an existing `DNS_MAX_LABELS` defined as 127
* There was a longstanding bug in `dns_name_isvalid()` which
checked the number of labels against 127U instead of 128
* I mistakenly thought `dns_name_isvalid()` was correct and
`dns_name_countlabels()` was incorrect, but the reverse was true.
After this commit, occurrances of `DNS_NAME_MAXLABELS` with value
128 are consistent with the use of 127 or 128 before commit
c6bf51492d except for the mistake in `dns_name_isvalid()`.
This commit adds a test case that checks the MAXLABELS case
in `dns_name_fromtext()` and `dns_name_isvalid()`.
2023-04-05 14:46:39 +00:00
..
2023-01-09 16:05:41 +01:00
2023-04-04 16:21:49 +02:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2023-02-16 18:35:32 +01:00
2022-11-30 11:47:35 -08:00
2022-06-16 17:21:11 +02:00
2023-03-01 15:36:36 +00:00
2022-01-11 09:05:02 +01:00
2023-03-28 12:38:27 -07:00
2023-02-07 23:48:22 -08:00
2022-11-30 12:16:09 +00:00
2023-02-28 11:44:15 +01:00
2023-02-28 11:44:15 +01:00
2022-06-16 17:21:11 +02:00
2023-02-24 08:30:33 +00:00
2022-06-16 17:21:11 +02:00
2022-06-16 17:21:11 +02:00
2022-04-04 19:27:00 +02:00
2023-03-28 15:44:31 -07:00
2023-03-13 23:26:35 +00:00
2023-02-16 17:51:55 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2023-02-16 18:35:32 +01:00
2022-01-27 15:48:50 -08:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2023-01-20 14:45:30 +00:00
2022-06-16 17:21:11 +02:00
2023-01-09 12:15:21 -08:00
2022-06-16 17:21:11 +02:00
2022-01-11 09:05:02 +01:00
2023-02-28 09:38:17 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-07-05 12:29:01 +10:00
2023-03-08 08:36:25 +01:00
2023-04-05 09:23:51 +02:00
2023-03-23 12:57:01 -07:00
2022-10-30 14:56:40 -07:00
2023-01-22 20:44:07 +01:00
2022-09-26 16:28:12 +02:00
2023-04-05 14:46:39 +00:00
2022-01-11 09:05:02 +01:00
2022-06-16 17:21:11 +02:00
2022-08-22 15:55:46 +02:00
2023-02-16 17:27:59 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2023-01-09 12:15:21 -08:00
2022-01-11 09:05:02 +01:00
2023-04-05 12:35:04 +01:00
2023-02-28 11:44:15 +01:00
2022-01-11 09:05:02 +01:00
2023-03-08 21:47:14 +00:00
2022-01-11 09:05:02 +01:00
2023-02-28 11:44:15 +01:00
2023-02-28 11:44:15 +01:00
2023-02-28 11:44:15 +01:00
2022-05-03 09:30:28 +00:00
2022-01-11 09:05:02 +01:00
2023-01-09 12:15:21 -08:00
2023-02-16 18:35:32 +01:00
2023-03-10 17:31:28 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2023-02-16 18:35:32 +01:00
2022-06-16 17:21:11 +02:00
2022-09-08 09:15:30 +02:00
2022-06-16 17:21:11 +02:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2022-04-04 19:27:00 +02:00
2023-04-03 12:08:05 +01:00
2022-01-11 09:05:02 +01:00
2023-03-08 08:36:25 +01:00
2023-03-30 23:29:25 +02:00
2022-09-23 13:23:49 +00:00
2023-03-16 09:55:50 -07:00
2022-01-11 09:05:02 +01:00
2023-04-05 14:46:39 +00:00
2022-01-11 09:05:02 +01:00
2023-03-30 16:00:52 +02:00
2023-04-05 12:38:11 +01:00
2023-02-24 08:30:33 +00:00
2023-04-05 12:38:11 +01:00
2022-01-11 09:05:02 +01:00
2022-01-11 09:05:02 +01:00
2023-04-05 12:38:11 +01:00