bind9/tests
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
..
bench A few qp-trie cleanups 2023-04-05 12:35:04 +01:00
dns Correct value of DNS_NAME_MAXLABELS 2023-04-05 14:46:39 +00:00
include/tests Fix Coverity complaints in the qp-trie tests 2023-04-03 15:10:47 +00:00
irs Move irs_resconf into libdns and remove libirs 2023-02-24 09:38:59 +00:00
isc Simplify histogram quantiles 2023-04-03 12:08:05 +01:00
isccfg Remove do-nothing header <isc/print.h> 2023-02-15 16:44:47 +00:00
libtest Use a qp-trie for the zone table 2023-04-05 12:38:11 +01:00
ns Replace __attribute__((unused)) with ISC_ATTR_UNUSED attribute macro 2023-03-30 23:29:25 +02:00
.gitignore Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
Makefile.am Build libtest even if CMOCKA is not available 2023-03-29 02:29:18 +00:00
unit-test-driver.sh.in Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00