From 16f90854f8957d12e2861bc77303f186402a8805 Mon Sep 17 00:00:00 2001 From: Ocean Wang Date: Tue, 3 May 2011 19:14:49 +0800 Subject: [trac838] check the iterator before deference it --- src/lib/util/encode/base_n.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/util/encode/base_n.cc') diff --git a/src/lib/util/encode/base_n.cc b/src/lib/util/encode/base_n.cc index e79f11d11f..46cb02c92b 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_); } } -- cgit v1.2.3