bind9/tests/dns
Mark Andrews ce8356905c Properly reject zero length ALPN in commatxt_fromtext
ALPN are defined as 1*255OCTET in RFC 9460.  commatxt_fromtext was not
rejecting invalid inputs produces by missing a level of escaping
which where later caught be dns_rdata_fromwire on reception.

These inputs should have been rejected

	svcb in svcb 1 1.svcb alpn=\,abc
	svcb1 in svcb 1 1.svcb alpn=a\,\,abc

and generated 00 03 61 62 63 and 01 61 00 02 61 62 63 respectively.

The correct inputs to include commas in the alpn requires double
escaping.

	svcb in svcb 1 1.svcb alpn=\\,abc
	svcb1 in svcb 1 1.svcb alpn=a\\,\\,abc

and generate 04 2C 61 62 63 and 06 61 2C 2C 61 62 63 respectively.

(cherry picked from commit b51c9eb797)
2024-08-01 01:10:53 +00:00
..
comparekeys Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
testdata Properly adjust the srcdir vs builddir paths 2022-06-01 17:45:34 +02:00
testkeys Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
.gitignore Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
acl_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
db_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
dbdiff_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
dbiterator_test.c fix several bugs in the RBTDB dbiterator implementation 2024-02-15 11:34:34 -08:00
dbversion_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
dh_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
dispatch_test.c remove nonfunctional DSCP implementation 2023-01-09 14:23:26 -08:00
dns64_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
dnstap_test.c Properly adjust the srcdir vs builddir paths 2022-06-01 17:45:34 +02:00
dst_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
geoip_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
Kdh.+002+18602.key Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
keytable_test.c Add synth-from-dnssec namespaces for keytable entries 2022-07-07 07:47:45 +10:00
Krsa.+008+29238.key Check if RSASHA1 is supported by the OS 2022-08-10 17:26:29 +10:00
Makefile.am Detect uncleared libcrypto errors in rdata processing 2023-09-01 14:21:49 +10:00
master_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
mkraw.pl Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
name_test.c Extract empty name in 'source' into 'name' 2024-04-24 12:22:48 +10:00
nsec3_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
nsec3param_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
private_test.c Update clang to version 14 2022-06-16 18:09:33 +02:00
rbt_test.c Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
rbtdb_test.c Add test for dns_rbtdb overmem purging 2023-07-26 13:39:24 +02:00
rdata_test.c Properly reject zero length ALPN in commatxt_fromtext 2024-08-01 01:10:53 +00:00
rdataset_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
rdatasetstats_test.c Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
resolver_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
rsa_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
sigs_test.c Clang-format header file changes 2024-05-17 16:21:35 -07:00
time_test.c Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
tsig_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
update_test.c Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
zonemgr_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
zt_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00