bind9/tests/dns
Ondřej Surý f9d24b1b85
Reject oversized RRsets at slab/vec construction
makeslab(), makevec(), dns_rdatavec_merge() and dns_rdatavec_subtract()
summed per-record storage into an unsigned int with no upper-bound
check.  An RRset whose total encoded size exceeds DNS_RDATA_MAXLENGTH
cannot fit in a DNS message and is unservable; building its in-memory
representation only burns memory on data that will fail at response
time, and at the upper bound the running sum could in theory wrap.

Cap the running total at DNS_RDATA_MAXLENGTH and return ISC_R_NOSPACE
when exceeded.  Update the qpdb cache memory-purge test to use a
record size that fits within the new limit.

Assisted-by: Claude:claude-opus-4-7
2026-05-05 18:14:40 +02:00
..
comparekeys Remove TKEY Mode 2 (Diffie-Hellman) 2023-03-08 08:36:25 +01:00
testdata replace the build system with meson 2025-06-11 10:30:12 +03:00
testkeys Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
.gitignore Remove test.skr unit test file 2024-09-09 19:41:03 +02:00
acl_test.c Add and use global memory context called isc_g_mctx 2025-08-04 11:29:26 +02:00
badcache_test.c Add and use global memory context called isc_g_mctx 2025-08-04 11:29:26 +02:00
byaddr_test.c Include <stdarg.h> in byaddr_test.c 2025-11-19 10:16:40 +11:00
db_test.c Support compilation with cmocka 2.0.0+ 2026-01-07 10:38:45 +01:00
dbdiff_test.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
dbiterator_test.c Implement dns_dbiterator_seek3 2025-12-10 14:18:52 +01:00
dbversion_test.c Add a new dbversion unit test 2026-01-21 10:47:17 +00:00
deleg_test.c rename DNS_DBFIND_NOEXACT to DNS_DBFIND_ABOVE 2026-04-16 11:28:13 +02:00
diff_test.c Use ControlStatementsExceptControlMacros for SpaceBeforeParens 2025-08-19 07:58:33 +02:00
dispatch_test.c Implement seamless TCP connection reuse in dns_dispatch 2026-04-14 17:48:13 +02:00
dns64_test.c Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
dnstap_test.c Convert dns_dtenv_t reference counting to standard macors 2026-03-18 16:10:07 +00:00
dst_test.c Add and use global memory context called isc_g_mctx 2025-08-04 11:29:26 +02:00
ede_test.c Support compilation with cmocka 2.0.0+ 2026-01-07 10:38:45 +01:00
geoip_test.c Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
Kdh.+002+18602.key Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
keytable_test.c change issecuredomain() functions to bool 2025-08-05 12:16:36 +02:00
Krsa.+008+29238.key Check if RSASHA1 is supported by the OS 2022-08-09 16:22:19 +02:00
master_test.c Fix formatting 2025-12-09 13:32:24 +01:00
meson.build Add DTRACE probes to dns_delegdb 2026-04-20 13:14:19 +02:00
mkraw.pl Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
name_test.c Add and use global memory context called isc_g_mctx 2025-08-04 11:29:26 +02:00
nametree_test.c Add and use global memory context called isc_g_mctx 2025-08-04 11:29:26 +02:00
nsec3_test.c Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
nsec3param_test.c Change NSEC3 and NSEC3PARAM struct fields to use isc_region_t 2026-04-02 16:53:18 +02:00
private_test.c Change NSEC3 and NSEC3PARAM struct fields to use isc_region_t 2026-04-02 16:53:18 +02:00
qp_test.c Fix a false positive compiler warning/error 2026-01-15 17:49:29 +00:00
qpdb_test.c Reject oversized RRsets at slab/vec construction 2026-05-05 18:14:40 +02:00
qpmulti_test.c Fix dns_qpmulti_memusage() on empty dns_qpmulti_t instance 2025-09-16 16:30:15 +02:00
qpzone_test.c Fix strict weak ordering violation in resign_sooner() 2026-04-17 14:31:15 +02:00
rdata_test.c Remove remaining RFC 3445 KEY flags 2026-05-05 10:17:31 +02:00
rdataset_test.c Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
rdatasetstats_test.c Add and use global memory context called isc_g_mctx 2025-08-04 11:29:26 +02:00
resconf_test.c Add and use global memory context called isc_g_mctx 2025-08-04 11:29:26 +02:00
resolver_test.c Support compilation with cmocka 2.0.0+ 2026-01-07 10:38:45 +01:00
rsa_test.c Reject RSA DNSKEYs with degenerate modulus at parse time 2026-04-30 15:50:32 +02:00
sigs_test.c Move zone set/get properties to own source file 2026-04-02 15:50:07 +02:00
skr_test.c Rename isc_result_t ret; to isc_result_t result; 2025-12-03 13:45:43 -08:00
time_test.c Move the library init and shutdown to executables 2025-02-22 16:19:00 +01:00
transport_test.c Add and use global memory context called isc_g_mctx 2025-08-04 11:29:26 +02:00
tsig_test.c Fix and call tsig_badsig unit test 2026-01-24 01:25:55 +11:00
unreachcache_test.c Fix an issue with unreachable cache's unit test 2025-12-02 16:03:26 +00:00
update_test.c standardize CHECK and RETERR macros 2025-12-03 13:26:28 -08:00
vecheader_test.c Add hashmap to qpz_heap 2026-03-31 16:22:56 +02:00
zonefile_test.c Make zone filename expansion accessible from outside dns_zone 2026-04-14 21:49:59 -07:00
zonemgr_test.c Move zonemgr to own source file 2026-04-08 14:24:17 +02:00
zt_test.c Move zone set/get properties to own source file 2026-04-02 15:50:07 +02:00