2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 05:28:00 +00:00

1350. [bug] dns_name_fromtext() failed to handle too many labels

gracefully.
This commit is contained in:
Mark Andrews 2002-08-02 00:25:15 +00:00
parent a1d4da0dc7
commit 0ad5cb4782
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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 <config.h>
@ -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 == '.') {