From be47cf2d63c5d79e95cc63a17f7dcefd3035e5da Mon Sep 17 00:00:00 2001 From: dougb Date: Thu, 20 Sep 2012 03:38:28 +0000 Subject: Vendor import of BIND 9.8.3-P3 --- lib/dns/rdataslab.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/dns/rdataslab.c') diff --git a/lib/dns/rdataslab.c b/lib/dns/rdataslab.c index 6fbfdd7..cb9ae54 100644 --- a/lib/dns/rdataslab.c +++ b/lib/dns/rdataslab.c @@ -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 -- cgit v1.1