2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

3364. [security] Named could die on specially crafted record.

[RT #30416]
This commit is contained in:
Mark Andrews
2012-08-16 09:42:14 +10:00
parent b8493d3292
commit 1bbd36c4db
10 changed files with 3399 additions and 12 deletions

View File

@@ -305,6 +305,7 @@ dns_rdataslab_fromrdataset(dns_rdataset_t *rdataset, isc_mem_t *mctx,
length = x[i].rdata.length;
if (rdataset->type == dns_rdatatype_rrsig)
length++;
INSIST(length <= 0xffff);
*rawbuf++ = (length & 0xff00) >> 8;
*rawbuf++ = (length & 0x00ff);
#if DNS_RDATASET_FIXED