]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Check invalid alpn empty value
authorMark Andrews <marka@isc.org>
Sun, 30 Jun 2024 23:23:31 +0000 (09:23 +1000)
committerMark Andrews <marka@isc.org>
Thu, 1 Aug 2024 00:20:55 +0000 (10:20 +1000)
bin/tests/system/checkzone/zones/bad-svcb-alpn4.db [new file with mode: 0644]
bin/tests/system/checkzone/zones/bad-svcb-alpn5.db [new file with mode: 0644]
bin/tests/system/checkzone/zones/bad-svcb-alpn6.db [new file with mode: 0644]

diff --git a/bin/tests/system/checkzone/zones/bad-svcb-alpn4.db b/bin/tests/system/checkzone/zones/bad-svcb-alpn4.db
new file mode 100644 (file)
index 0000000..5ba0850
--- /dev/null
@@ -0,0 +1,17 @@
+; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+;
+; SPDX-License-Identifier: MPL-2.0
+;
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0.  If a copy of the MPL was not distributed with this
+; file, you can obtain one at https://mozilla.org/MPL/2.0/.
+;
+; See the COPYRIGHT file distributed with this work for additional
+; information regarding copyright ownership.
+
+$TTL 600
+@              SOA     ns hostmaster 2011012708 3600 1200 604800 1200
+               NS      ns
+ns             A       192.0.2.1
+; invalid zero length alpn at start
+svcb           SVCB    1 . alpn=,abc
diff --git a/bin/tests/system/checkzone/zones/bad-svcb-alpn5.db b/bin/tests/system/checkzone/zones/bad-svcb-alpn5.db
new file mode 100644 (file)
index 0000000..349521a
--- /dev/null
@@ -0,0 +1,17 @@
+; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+;
+; SPDX-License-Identifier: MPL-2.0
+;
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0.  If a copy of the MPL was not distributed with this
+; file, you can obtain one at https://mozilla.org/MPL/2.0/.
+;
+; See the COPYRIGHT file distributed with this work for additional
+; information regarding copyright ownership.
+
+$TTL 600
+@              SOA     ns hostmaster 2011012708 3600 1200 604800 1200
+               NS      ns
+ns             A       192.0.2.1
+; invalid zero length alpn in midddle
+svcb            SVCB    1 . alpn=a,,abc
diff --git a/bin/tests/system/checkzone/zones/bad-svcb-alpn6.db b/bin/tests/system/checkzone/zones/bad-svcb-alpn6.db
new file mode 100644 (file)
index 0000000..ae41710
--- /dev/null
@@ -0,0 +1,17 @@
+; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+;
+; SPDX-License-Identifier: MPL-2.0
+;
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0.  If a copy of the MPL was not distributed with this
+; file, you can obtain one at https://mozilla.org/MPL/2.0/.
+;
+; See the COPYRIGHT file distributed with this work for additional
+; information regarding copyright ownership.
+
+$TTL 600
+@              SOA     ns hostmaster 2011012708 3600 1200 604800 1200
+               NS      ns
+ns             A       192.0.2.1
+; invalid zero length alpn at end
+svcb            SVCB    1 . alpn=abc,