From: Marco Dickert <marco@misterunknown.de>
To: musl@lists.openwall.com
Subject: Bug in getaddrinfo
Date: Fri, 22 Jun 2018 00:04:31 +0200 [thread overview]
Message-ID: <20180621220431.aylvgwax6h766y5r@kronos.misterunknown.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 777 bytes --]
Hi all.
I found a bug in the musl implementation of getaddrinfo(). It apparently returns
a bad ai_canonname value. I used this [1] code to produce the following results
on an alpine linux (edge):
----
alpine:~# ./addrinfo-test mail.misterunknown.de
Result 0 0xda051c83080
Canonname mail.misterunknown.de
alpine:~# ./addrinfo-test mail.misterunknown.de.
Result 0 0x53f7dac4080
Canonname mail.misterunknown.de.
----
The problem is the trailing dot in the Commonname in the second example, which
should not be there. See also this [2] bug report I opened in the first place.
Cheers,
Marco
[1] https://pastebin.com/nypMzhCb
[2] https://gitlab.isc.org/isc-projects/bind9/issues/354
--
Marco Dickert
marco@misterunknown.de
https://misterunknown.de
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 5022 bytes --]
next reply other threads:[~2018-06-21 22:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-21 22:04 Marco Dickert [this message]
2018-06-22 2:26 ` Rich Felker
2018-06-26 9:36 ` Marco Dickert
2018-06-26 20:40 ` 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=20180621220431.aylvgwax6h766y5r@kronos.misterunknown.de \
--to=marco@misterunknown.de \
--cc=musl@lists.openwall.com \
/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).