]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix delegdb dump buffer overflow
authorColin Vidal <colin@isc.org>
Fri, 5 Jun 2026 09:58:02 +0000 (11:58 +0200)
committerColin Vidal <colin@isc.org>
Fri, 12 Jun 2026 13:45:22 +0000 (15:45 +0200)
commitebd4e26f46db01abf5dbc985f4e14438269959d7
treeb76a97b9cf747da063f15913a72e9b26a5b3afb3
parent7a1a3a02515938d521b52c71a8889e89b00720f9
Fix delegdb dump buffer overflow

A buffer used to dump a DNS name in the delegdb dump flow was using the
wrong size: it was using `DNS_NAME_MAXWIRE` which is the actual max
length of a DNS name on the wire instead of using `DNS_NAME_FORMATSIZE`
which is the maximum length of a textual representation of a DNS name
(which can be way longer than `DNS_NAME_MAXWIRE` if using the master
file escape sequence format) plus 1 (end of string byte). This could
lead to a buffer overflow. This is now fixed.
lib/dns/deleg.c