bin/84106: inet_pton(AF_INET6, ....) seems too permissive

Hajimu UMEMOTO ume at freebsd.org
Wed Jul 27 10:50:23 GMT 2005


The following reply was made to PR bin/84106; it has been noted by GNATS.

From: Hajimu UMEMOTO <ume at freebsd.org>
To: "Mikhail T." <mi at aldan.algebra.com>
Cc: FreeBSD-gnats-submit at freebsd.org, standards at freebsd.org
Subject: Re: bin/84106: inet_pton(AF_INET6, ....) seems too permissive
Date: Wed, 27 Jul 2005 19:42:38 +0900

 Hi,
 
 >>>>> On Tue, 26 Jul 2005 00:42:13 -0400 (EDT)
 >>>>> "Mikhail T." <mi at aldan.algebra.com> said:
 
 mi> 	NSPR's addtest pointed me at this problem -- our inet_pton
 mi> 	gladly accepts invalid IPv6 addresses like:
 
 mi> 		1:2:3:4:5:6:7::8
 mi> 	or
 mi> 		1:2:3:4:5:6::7:8
 
 mi> 	inet_pton should reject (return 0) both of these addresses.
 
 No, I don't think so.  I cannot see such restriction in RFC 2373 2.2
 Text Representation of Addresses.  Isn't it a problem of NSPR's
 addtest?
 
 Sincerely,
 
 --
 Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
 ume at mahoroba.org  ume@{,jp.}FreeBSD.org
 http://www.imasy.org/~ume/


More information about the freebsd-bugs mailing list