]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1932. [bug] dump_rdataset_raw() had a incorrect INSIST. [RT #15534]
authorMark Andrews <marka@isc.org>
Fri, 21 Oct 2005 03:19:35 +0000 (03:19 +0000)
committerMark Andrews <marka@isc.org>
Fri, 21 Oct 2005 03:19:35 +0000 (03:19 +0000)
CHANGES
lib/dns/masterdump.c

diff --git a/CHANGES b/CHANGES
index 77508e62a43635683bc9e5ab4af02c8b0f0dd07b..2aae02ca715e5205c62c2c8957361eb083915c0b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+1932.  [bug]           dump_rdataset_raw() had a incorrect INSIST. [RT #15534]
+
 1932.  [bug]           hpux: LDFLAGS was getting corrupted. [RT #15530]
 
        --- 9.4.0a2 released ---
index 3eca4789c9573fc5804f01da713912affb854450..fa315deb8a1d9ae56843596d9a2efcca432d111d 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: masterdump.c,v 1.73.18.8 2005/09/20 04:33:46 marka Exp $ */
+/* $Id: masterdump.c,v 1.73.18.9 2005/10/21 03:19:35 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;