Commit 25d67c0d45 for bind

commit 25d67c0d45a7f93de48321a546a2413fdcba61d5
Author: Michal Nowak <mnowak@isc.org>
Date:   Fri Oct 9 15:07:08 2026 +0000

    Zip the raw-format header fields strictly

    The raw-format header reader pairs a list of field names with the
    values of a struct format string; if one is changed without the other,
    zip() silently drops the excess.  zip(strict=True), available since
    Python 3.10, the minimum required by dnspython 2.8.0, turns that into
    an error.

    Assisted-by: Claude:claude-opus-5-5

diff --git a/bin/tests/system/inline/tests_signed_zone_files.py b/bin/tests/system/inline/tests_signed_zone_files.py
index abb9f1c5db..b6d11372ef 100644
--- a/bin/tests/system/inline/tests_signed_zone_files.py
+++ b/bin/tests/system/inline/tests_signed_zone_files.py
@@ -52,7 +52,7 @@ class RawFormatHeader(dict):
         header = struct.Struct(">IIIIII")
         with open(file_name, "rb") as data:
             header_data = data.read(header.size)
-        super().__init__(zip(self.fields, header.unpack_from(header_data)))
+        super().__init__(zip(self.fields, header.unpack_from(header_data), strict=True))


 def test_unsigned_serial_number():
diff --git a/bin/tests/system/rpzrecurse/common.py b/bin/tests/system/rpzrecurse/common.py
index 07b48610cb..2e54a3b6e8 100644
--- a/bin/tests/system/rpzrecurse/common.py
+++ b/bin/tests/system/rpzrecurse/common.py
@@ -41,7 +41,7 @@ def write_case(
         template="ns2/named.case.conf.j2.manual",
     )

-    for name, triggers in zip(names, zones):
+    for name, triggers in zip(names, zones, strict=True):
         triggers = [qname(t) if isinstance(t, int) else t for t in triggers]
         templates.render(
             f"ns2/db.{name}",
diff --git a/pyproject.toml b/pyproject.toml
index 1eb61584f7..acd54a5d27 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -114,6 +114,8 @@ lint.select = [
   "UP032",
   # nested with statements
   "SIM117",
+  # zip() without strict=
+  "B905",
 ]
 extend-exclude = [
   "bin/tests/system/vulture_ignore_list.py",
diff --git a/tests/hypothesis/vecheader.py b/tests/hypothesis/vecheader.py
index b290b30187..662ecc4a86 100644
--- a/tests/hypothesis/vecheader.py
+++ b/tests/hypothesis/vecheader.py
@@ -127,7 +127,7 @@ def cases(draw):


 def contents(header):
-    return dict(zip(header.records, header.offline))
+    return dict(zip(header.records, header.offline, strict=True))


 def check_header(response, expected, metadata, owner, rrtype):