From: Matthijs Mekking Date: Thu, 2 Apr 2026 08:21:24 +0000 (+0200) Subject: Fix buffer overflow in check_zoneconf X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51975b54347db4c8662e771b44a967edeabea239;p=thirdparty%2Fbind9.git Fix buffer overflow in check_zoneconf Removing these two lines prevents the buffer overflow at startup. --- diff --git a/lib/bind9/check.c b/lib/bind9/check.c index b562869a183..38602496102 100644 --- a/lib/bind9/check.c +++ b/lib/bind9/check.c @@ -1999,8 +1999,6 @@ check_zoneconf(const cfg_obj_t *zconfig, const cfg_obj_t *voptions, rfc1918 = true; else if (dns_name_isula(zname)) ula = true; - tmp += strlen(tmp); - len -= strlen(tmp); (void)snprintf(tmp, len, "%u/%s", zclass, (ztype == CFG_ZONE_INVIEW) ? target : (viewname != NULL) ? viewname : "_default");