Commit 203629e7 authored by Mark Andrews's avatar Mark Andrews
Browse files

1932. [bug] dump_rdataset_raw() had a incorrect INSIST. [RT #15534]

parent 2c279911
1932. [bug] dump_rdataset_raw() had a incorrect INSIST. [RT #15534]
1932. [bug] hpux: LDFLAGS was getting corrupted. [RT #15530]
1931. [bug] Per-client mctx could require a huge amount of memory,
......
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: masterdump.c,v 1.81 2005/09/20 04:22:44 marka Exp $ */
/* $Id: masterdump.c,v 1.82 2005/10/21 03:13:59 marka Exp $ */
/*! \file */
......@@ -910,7 +910,7 @@ dump_rdataset_raw(isc_mem_t *mctx, dns_name_t *name, dns_rdataset_t *rdataset,
dns_rdataset_current(rdataset, &rdata);
dns_rdata_toregion(&rdata, &r);
INSIST(r.length <= DNS_NAME_MAXWIRE);
INSIST(r.length <= 0xffffU);
dlen = (isc_uint16_t)r.length;
/*
......@@ -919,7 +919,8 @@ dump_rdataset_raw(isc_mem_t *mctx, dns_name_t *name, dns_rdataset_t *rdataset,
* entire procedure (or should we copy the old data and
* continue?).
*/
if (isc_buffer_availablelength(buffer) < dlen + r.length) {
if (isc_buffer_availablelength(buffer) <
sizeof(dlen) + r.length) {
int newlength;
void *newmem;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment