URI parser needs to do printable ascii validation for string result

v1.23
Brad House 6 months ago
parent 8afe03a4b1
commit 6d9d3690cc
  1. 5
      src/lib/ares_dns_parse.c

@ -632,6 +632,11 @@ static ares_status_t ares_dns_parse_rr_uri(ares__buf_t *buf, ares_dns_rr_t *rr,
return status; return status;
} }
if (!ares__str_isprint(name, remaining_len)) {
ares_free(name);
return ARES_EBADRESP;
}
status = ares_dns_rr_set_str_own(rr, ARES_RR_URI_TARGET, name); status = ares_dns_rr_set_str_own(rr, ARES_RR_URI_TARGET, name);
if (status != ARES_SUCCESS) { if (status != ARES_SUCCESS) {
ares_free(name); ares_free(name);

Loading…
Cancel
Save