]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix: test: Make deleg cleanuptests memory assertions 32-bit-safe
authorMichal Nowak <mnowak@isc.org>
Wed, 20 May 2026 16:55:34 +0000 (18:55 +0200)
committerMichal Nowak <mnowak@isc.org>
Wed, 20 May 2026 16:55:34 +0000 (18:55 +0200)
commit2420b9364b2cbe30bb8adda9068fb5b13c8f7f2f
tree6672acf8cfd49c46ee2de61f9156e84700cab5c8
parent6cae1d10ca35bd5458613b32ee09b0131b950556
parent4623873e588c86c6add4d53708e754e2d6f3e087
fix: test: Make deleg cleanuptests memory assertions 32-bit-safe

Each address entry stored by dns_delegset_addaddr() is an
isc_netaddrlink_t, whose size depends on sizeof(void *) via the
ISC_LINK macro (24 bytes of address + two prev/next pointers): 40
bytes on 64-bit, 32 bytes on 32-bit. The hardcoded 4 MB / 8 MB
ranges only held on 64-bit, so dns_deleg_cleanuptests failed on
armv7l with isc_mem_inuse() returning ~3.2 MB.

Express the expected ranges in terms of sizeof(isc_netaddrlink_t)
so they scale with pointer width, and pull the 99999 entry count
out into a NENTRIES macro.

Close isc-projects/bind9#6012

Merge branch 'mnowak/armv7l-fix-dns_deleg_cleanuptests' into 'main'

See merge request isc-projects/bind9!12061