mailing list of musl libc
 help / color / mirror / code / Atom feed
* Bug in getaddrinfo
@ 2018-06-21 22:04 Marco Dickert
  2018-06-22  2:26 ` Rich Felker
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Dickert @ 2018-06-21 22:04 UTC (permalink / raw)
  To: musl

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-26 20:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-21 22:04 Bug in getaddrinfo Marco Dickert
2018-06-22  2:26 ` Rich Felker
2018-06-26  9:36   ` Marco Dickert
2018-06-26 20:40     ` Rich Felker

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).