From: W.C.A. Wijngaards Date: Wed, 27 May 2026 10:20:04 +0000 (+0200) Subject: - Fix that msgencode insert_query has the correct assertion, X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=fbbe95ba5baf856acd379942f6cbf70fd453671d;p=thirdparty%2Funbound.git - Fix that msgencode insert_query has the correct assertion, for a local_alias. Thanks to Qifan Zhang, Palo Alto Networks, for the report. --- diff --git a/doc/Changelog b/doc/Changelog index 186a5cd8d..d13133d46 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -7,6 +7,9 @@ - Fix that the ratelimit is decremented on successful referrals. Thanks to Qifan Zhang, Palo Alto Networks, for the report. + - Fix that msgencode insert_query has the correct assertion, + for a local_alias. Thanks to Qifan Zhang, Palo Alto Networks, + for the report. 26 May 2026: Wouter - Fix for mesh new client and mesh new callback to rollback the diff --git a/util/data/msgencode.c b/util/data/msgencode.c index dd56cc6aa..b1311111b 100644 --- a/util/data/msgencode.c +++ b/util/data/msgencode.c @@ -634,7 +634,7 @@ insert_query(struct query_info* qinfo, struct compress_tree_node** tree, size_t qname_len = qinfo->local_alias ? qinfo->local_alias->rrset->rk.dname_len : qinfo->qname_len; if(sldns_buffer_remaining(buffer) < - qinfo->qname_len+sizeof(uint16_t)*2) + qname_len+sizeof(uint16_t)*2) return RETVAL_TRUNC; /* buffer too small */ /* the query is the first name inserted into the tree */ if(!compress_tree_store(qname, dname_count_labels(qname),