mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Laurent Bercot" <ska-dietlibc@skarnet.org>
To: musl@lists.openwall.com
Cc: philip.homburg@ripe.net
Subject: Re: inet_ntop bug in 1.1.19
Date: Mon, 04 Jun 2018 14:23:55 +0000	[thread overview]
Message-ID: <em7bfddade-cc3c-4c49-b851-471bc6c37005@elzian> (raw)
In-Reply-To: <a7e32d88-2b5f-e9f9-8108-7fdb3958a130@ripe.net>

>inet_ntop doesn't conform to RFC 5952 (A Recommendation for IPv6 
>Address
>Text Representation).
>
>I attached a test program to demonstrate the issue and a patch:
>$ cc inet_ntop_test.c musl-1.1.19/src/network/inet_ntop.c
>$ ./a.out
>Section 4.2.2 test failed: got 2001:db8::1:1:1:1:1, expected
>2001:db8:0:1:1:1:1:1

  https://tools.ietf.org/html/rfc5952#section-4.2.1 says:
  "The use of the symbol "::" MUST be used to its maximum capability."

  2001:db8::1:1:1:1:1 is the correct canonical text representation.

--
  Laurent



  reply	other threads:[~2018-06-04 14:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-04 13:57 Philip Homburg
2018-06-04 14:23 ` Laurent Bercot [this message]
2018-06-04 18:39   ` Timo Teras
2018-06-05  0:37     ` Rich Felker
2018-06-26 20:56       ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=em7bfddade-cc3c-4c49-b851-471bc6c37005@elzian \
    --to=ska-dietlibc@skarnet.org \
    --cc=musl@lists.openwall.com \
    --cc=philip.homburg@ripe.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).