mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00:00
1350. [bug] dns_name_fromtext() failed to handle too many labels
gracefully.
This commit is contained in:
3
CHANGES
3
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).
|
1349. [security] Mimimum OpenSSL version now 0.9.6e (was 0.9.5a).
|
||||||
http://www.cert.org/advisories/CA-2002-23.html
|
http://www.cert.org/advisories/CA-2002-23.html
|
||||||
|
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* 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>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -1239,6 +1239,8 @@ dns_name_fromtext(dns_name_t *name, isc_buffer_t *source,
|
|||||||
}
|
}
|
||||||
kind = ft_ordinary;
|
kind = ft_ordinary;
|
||||||
state = ft_ordinary;
|
state = ft_ordinary;
|
||||||
|
if (nrem == 0)
|
||||||
|
return (ISC_R_NOSPACE);
|
||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
case ft_ordinary:
|
case ft_ordinary:
|
||||||
if (c == '.') {
|
if (c == '.') {
|
||||||
|
Reference in New Issue
Block a user