bind9/lib
Aram Sargsyan 684d7e008a Fix a bug in dns_catz_generate_zonecfg()
The dns_catz_generate_zonecfg() function generates a zone configuration
string to use with a new catalog zone member zone. The buffer for the
string is 512 bytes initially (ISC_BUFFER_INCR), but can be reallocated
when required, when using corresponding isc_buffer functions like
isc_buffer_reserve(), isc_buffer_putstr(), isc_buffer_copyregion(), etc.

However, the dns_name_totext() function, which expects the buffer as an
argument, doesn't automatically resize it if the name doesn't fit there,
but instead just returns ISC_R_NOSPACE.

The chance of this occurring increases when the configuration string is
large due to, for example, long zone name, long list of primary servers
which have keys configured and/or TLS configured.

Use dns_name_format() accompanied with isc_buffer_putstr() instead of
dns_name_totext().
2025-12-09 18:09:45 +11:00
..
dns Fix a bug in dns_catz_generate_zonecfg() 2025-12-09 18:09:45 +11:00
isc document usage of BIND9 constructors/destructors 2025-12-04 16:09:40 +01:00
isccc switch to RETERR where it wasn't being used 2025-12-03 13:45:43 -08:00
isccfg shrunk cfgobj down from 48 bytes to 40 bytes 2025-12-06 08:51:23 +01:00
ns support EDE 13 (Cached Error) 2025-12-05 23:28:29 +01:00
.gitignore The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
meson.build replace the build system with meson 2025-06-11 10:30:12 +03:00