]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1654. [bug] isc_result_totext() contained array bounds read
authorMark Andrews <marka@isc.org>
Fri, 11 Jun 2004 00:35:05 +0000 (00:35 +0000)
committerMark Andrews <marka@isc.org>
Fri, 11 Jun 2004 00:35:05 +0000 (00:35 +0000)
                        error.

CHANGES
lib/isc/result.c

diff --git a/CHANGES b/CHANGES
index 1b1bb4d0f8066bb70e95cc59f448e3072b614ca0..8f93b5f0f508397a0d62351ad0b76da3ef7a2d7d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+1654.  [bug]           isc_result_totext() contained array bounds read
+                       error.
+
 1650.  [bug]           dig, nslookup: flush standard out after each command.
 
 1649.  [bug]           Silence "unexpected non-minimal diff" message.
index 9626f29f95433dfd226db2b44570016df929cb7e..4e8c6579ce31cd722dc59ab45b35165bd05d1c31 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: result.c,v 1.56.2.4 2004/03/09 06:11:51 marka Exp $ */
+/* $Id: result.c,v 1.56.2.5 2004/06/11 00:35:05 marka Exp $ */
 
 #include <config.h>
 
@@ -124,7 +124,7 @@ register_table(unsigned int base, unsigned int nresults, const char **text,
        if (table == NULL)
                return (ISC_R_NOMEMORY);
        table->base = base;
-       table->last = base + nresults;
+       table->last = base + nresults - 1;
        table->text = text;
        table->msgcat = msgcat;
        table->set = set;