From: Mark Andrews Date: Sun, 30 Jun 2024 23:23:31 +0000 (+1000) Subject: Check invalid alpn empty value X-Git-Tag: v9.18.29~25^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=a8d86f05315bf8446d610f7f927042cb6438e4d5;p=thirdparty%2Fbind9.git Check invalid alpn empty value (cherry picked from commit fa35c673018cadcaca0d238e5a53d68b68164081) --- 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 index 00000000000..5ba0850a153 --- /dev/null +++ b/bin/tests/system/checkzone/zones/bad-svcb-alpn4.db @@ -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 index 00000000000..349521a0a71 --- /dev/null +++ b/bin/tests/system/checkzone/zones/bad-svcb-alpn5.db @@ -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 index 00000000000..ae4171013db --- /dev/null +++ b/bin/tests/system/checkzone/zones/bad-svcb-alpn6.db @@ -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,