bind9/bin
Michal Nowak 3584c03e3f 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:35:40 +00:00
..
check Resolve ERR_MISSING_GLUE / ERR_EXTRA_AAAA value collision 2026-04-29 15:32:03 +00:00
confgen Size HMAC key generation buffers to the maximum block size 2026-04-30 06:01:01 +02:00
delv Use const pointer with strchr of const pointer 2026-01-20 06:00:56 +00:00
dig Document that query options are order sensitive 2026-02-09 22:47:20 +00:00
dnssec Fix dnssec-signzone usage output 2026-03-23 09:36:54 +00:00
named Merge tag 'v9.18.49' into bind-9.18 2026-05-20 10:18:26 +00:00
nsupdate nsupdate does not handle zero length RDATA well 2026-04-09 00:34:20 +00:00
plugins standardize CHECK and RETERR macros 2025-12-03 19:18:12 -08:00
rndc document config option dependency for showzone 2025-10-23 20:11:45 +00:00
tests Tolerate dnspython post-2038 timestamp overflow on 32-bit 2026-05-22 16:35:40 +00:00
tools Validate nsec3hash arguments instead of relying on atoi() 2026-05-21 11:54:03 +00:00
Makefile.am Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00