From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4142 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: inet_pton Date: Tue, 22 Oct 2013 00:25:17 +0200 Message-ID: <20131021222517.GH1685@port70.net> References: <20131021020817.GL20515@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1382394325 16350 80.91.229.3 (21 Oct 2013 22:25:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2013 22:25:25 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4146-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 22 00:25:30 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VYNuk-0006dO-6Y for gllmg-musl@plane.gmane.org; Tue, 22 Oct 2013 00:25:30 +0200 Original-Received: (qmail 21543 invoked by uid 550); 21 Oct 2013 22:25:29 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 21532 invoked from network); 21 Oct 2013 22:25:29 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4142 Archived-At: * Paul Schutte [2013-10-21 21:59:16 +0200]: > I have tested the suggested fix and this is the result: i've added your test cases to libc-test and some more which revealed further issues src/functional/inet_pton.c:59: inet_pton(AF_INET, "1.2.3.", addr) returned 1, want 0 src/functional/inet_pton.c:60: inet_pton(AF_INET, "1.2.3.4.5", addr) returned 1, want 0 src/functional/inet_pton.c:62: inet_pton(AF_INET, "1.2.03.4", addr) returned 1, want 0 src/functional/inet_pton.c:68: inet_pton(AF_INET6, ":", addr) returned 1, want 0 src/functional/inet_pton.c:73: inet_pton(AF_INET6, ":192.168.1.1", addr) returned 1, want 0 src/functional/inet_pton.c:75: inet_pton(AF_INET6, ":ffff:192.168.1.1", addr) returned 1, want 0 src/functional/inet_pton.c:81: inet_pton(AF_INET6, ":ffff:c0a8:5e4", addr) returned 1, want 0