bind9/bin
Michal Nowak 754ee3158f Tolerate dnspython post-2038 timestamp overflow on 32-bit
dnspython's RRSIG.to_text() converts the signature inception/expiration
fields by calling time.gmtime(), which on 32-bit platforms raises
OverflowError for values past 2038-01-19 (INT32_MAX). Several DNSSEC
test fixtures use far-future expirations: the precomputed RRSIGs in
the dnssec test's rsasha1.example.db.in zone expire in 2093, ans4 of
the chain test hardcodes 2090, and ans10 of the dnssec test uses
2**32-1 (year 2106). Whenever a response carrying such an RRSIG is
formatted with str()/to_text() the overflow propagates out and either
fails the test (when triggered in isctest.query's debug logging) or
kills the asyncserver-based ans* server (when triggered in its
response logger), which in turn cascades into "Failed to stop
servers" teardown errors and SERVFAIL responses for subsequent tests.

Wrap the to_text() calls in isctest/query.py and the str(response)
call in asyncserver's _log_response() with try/except OverflowError,
falling back to a placeholder message. The conversions are only used
for debug logging, so losing the human-readable form there does not
affect what the tests actually validate.

Assisted-by: Claude:claude-opus-4-7

(cherry picked from commit 968ccdeeda)
2026-05-22 16:33:43 +00:00
..
check Resolve ERR_MISSING_GLUE / ERR_EXTRA_AAAA value collision 2026-04-29 15:31:58 +00:00
confgen Size HMAC key generation buffers to the maximum block size 2026-04-30 06:00:07 +02:00
delv Skip detach when delv's client never created 2026-04-30 12:07:49 +02:00
dig Add examples to the dig man page 2026-02-22 16:21:13 +00:00
dnssec Fix off by one error in dnssec-ksr sign 2026-04-07 08:32:58 +00:00
named Merge tag 'v9.20.23' into bind-9.20 2026-05-20 10:18:28 +00:00
nsupdate nsupdate does not handle zero length RDATA well 2026-04-09 00:34:15 +00:00
plugins standardize CHECK and RETERR macros 2025-12-03 19:17:20 -08:00
rndc List 'rndc dnssec' arguments in alphabetic order 2026-02-18 14:20:53 +00:00
tests Tolerate dnspython post-2038 timestamp overflow on 32-bit 2026-05-22 16:33:43 +00:00
tools Validate nsec3hash arguments instead of relying on atoi() 2026-05-21 11:41:29 +00:00
Makefile.am Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00