diff --git a/CHANGES b/CHANGES index a5b06f61d3..92779f3eff 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1350. [bug] dns_name_fromtext() failed to handle too many labels + gracefully. + 1349. [security] Mimimum OpenSSL version now 0.9.6e (was 0.9.5a). http://www.cert.org/advisories/CA-2002-23.html diff --git a/lib/dns/name.c b/lib/dns/name.c index e489fa48d8..3a2d776c78 100644 --- a/lib/dns/name.c +++ b/lib/dns/name.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: name.c,v 1.135 2002/05/29 00:27:53 marka Exp $ */ +/* $Id: name.c,v 1.136 2002/08/02 00:25:15 marka Exp $ */ #include @@ -1239,6 +1239,8 @@ dns_name_fromtext(dns_name_t *name, isc_buffer_t *source, } kind = ft_ordinary; state = ft_ordinary; + if (nrem == 0) + return (ISC_R_NOSPACE); /* FALLTHROUGH */ case ft_ordinary: if (c == '.') {