BIND 10 trac838, updated. 16f90854f8957d12e2861bc77303f186402a8805 [trac838] check the iterator before deference it

BIND 10 source code commits bind10-changes at lists.isc.org
Tue May 3 11:15:56 UTC 2011


The branch, trac838 has been updated
       via  16f90854f8957d12e2861bc77303f186402a8805 (commit)
      from  ac7ff7f2226bdba60809b70caa82659b77c6e2e6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 16f90854f8957d12e2861bc77303f186402a8805
Author: Ocean Wang <wanghaidong at cnnic.cn>
Date:   Tue May 3 19:14:49 2011 +0800

    [trac838] check the iterator before deference it

-----------------------------------------------------------------------

Summary of changes:
 src/lib/util/encode/base_n.cc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/util/encode/base_n.cc b/src/lib/util/encode/base_n.cc
index e79f11d..46cb02c 100644
--- a/src/lib/util/encode/base_n.cc
+++ b/src/lib/util/encode/base_n.cc
@@ -123,6 +123,9 @@ public:
         if (in_pad_) {
             return (BINARY_ZERO_CODE);
         } else {
+            if (base_ == base_end_) {
+                isc_throw(BadValue, "end of input");
+            }
             return (*base_);
         }
     }




More information about the bind10-changes mailing list