dump_rrset_line(struct config_strlist_head* txt, struct ub_packed_rrset_key* k,
time_t now, size_t i)
{
- char s[65535];
+ char s[65535*4+2048];
if(!packed_rr_to_string(k, i, now, s, sizeof(s))) {
spool_txt_string(txt, "BADRR\n");
return;
/* read the line */
if(!ssl_read_buf(ssl, buf))
return 0;
- if(strncmp((char*)sldns_buffer_begin(buf), "BADRR\n", 6) == 0) {
+ if(strcmp((char*)sldns_buffer_begin(buf), "BADRR") == 0) {
*go_on = 0;
return 1;
}
- Fix that validation canonicalization of domain names
in rdata checks for buffer bounds. Thanks to Qifan Zhang,
Palo Alto Networks, for the report.
+ - Fix that dump_cache has a larger buffer for records,
+ and it checks that an owner name does not collide with BADRR
+ on the input, and changes verbosity on the log of failure in
+ rrset to string. Thanks to Qifan Zhang, Palo Alto Networks,
+ for the report.
3 June 2026: Yorgos
- Fix const as reported by newest compiler warnings.
wlen = (size_t)sldns_wire2str_rr_buf(rr, rlen, dest, dest_len);
if(wlen >= dest_len) {
/* the output string was truncated */
- log_info("rrbuf failure %d %s", (int)d->rr_len[i], dest);
+ verbose(VERB_ALGO, "rrbuf failure %d %s", (int)d->rr_len[i], dest);
dest[0] = 0;
return 0;
}