Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131021222517.GH1685@port70.net>
Date: Tue, 22 Oct 2013 00:25:17 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: Re: inet_pton

* Paul Schutte <sjpschutte@...il.com> [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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.