ldns_nsec3_salt_data reported by pokerfacett.
...
* bugfix #50: heap Out-of-bound Read vulnerability in
rr_frm_str_internal reported by pokerfacett.
+ * bugfix #51: Heap Out-of-bound Read vulnerability in
+ ldns_nsec3_salt_data reported by pokerfacett.
1.7.1 2019-07-26
* bugfix: Manage verification paths for OpenSSL >= 1.1.0
ldns_rdf *salt_rdf = ldns_nsec3_salt(nsec3_rr);
if (salt_rdf && ldns_rdf_size(salt_rdf) > 0) {
salt_length = ldns_rdf_data(salt_rdf)[0];
+ if((size_t)salt_length+1 > ldns_rdf_size(salt_rdf))
+ return NULL;
salt = LDNS_XMALLOC(uint8_t, salt_length);
if(!salt) return NULL;
memcpy(salt, &ldns_rdf_data(salt_rdf)[1], salt_length);