bind9/tests
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
..
dns Properly reject zero length ALPN in commatxt_fromtext 2024-08-01 01:10:53 +00:00
include/tests Clang-format header file changes 2024-05-17 16:21:35 -07:00
irs Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
isc Fix a data race in isc_task_purgeevent() 2024-05-17 12:08:27 +00:00
isccfg Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
libtest Use a new memory context when flushing the cache 2024-06-04 12:42:05 +00:00
ns Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
.gitignore Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
Makefile.am Stop the unit tests from running twice 2022-05-31 12:06:00 +02:00
unit-test-driver.sh.in Reformat shell scripts with shfmt 2023-10-26 13:05:00 +02:00