NetBSD Problem Report #50552

From amonk@nbsd4e.backwatcher.com  Mon Dec 14 11:41:09 2015
Return-Path: <amonk@nbsd4e.backwatcher.com>
Received: from mail.netbsd.org (mail.NetBSD.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 840927ABC0
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 14 Dec 2015 11:41:09 +0000 (UTC)
Message-Id: <20151214102553.980337CEB3@nbsd4e.backwatcher.com>
Date: Mon, 14 Dec 2015 02:25:50 -0800 (PST)
From: amonk@gnutec.ca
Reply-To: amonk@gnutec.ca
To: gnats-bugs@NetBSD.org
Subject: libc getaddrinfo() bug
X-Send-Pr-Version: 3.95

>Number:         50552
>Category:       lib
>Synopsis:       getaddrinfo() fails 32bit decimal IP addresses (i.e. no octets)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 14 11:45:00 +0000 2015
>Closed-Date:    Fri Aug 13 21:32:03 +0000 2021
>Last-Modified:  Fri Aug 13 21:32:03 +0000 2021
>Originator:     Kyle Amon
>Release:        NetBSD 7.0
>Organization:
BackWatcher, Inc.
>Environment:

>Description:
Please reference Tor ticket #17846 for a thorough description.
https://trac.torproject.org/projects/tor/ticket/17846

Also note that RFC 3493 defines getaddrinfo() the same way POSIX does,
and that NetBSD's net(3) cites said RFC.

And for "low priority, will merge well written patches, probably not
actively core-developer must do" ...
https://svnweb.freebsd.org/base/stable/10/lib/libc/net/getaddrinfo.c?r1=160551&r2=160552

>How-To-Repeat:
Try...

# getaddrinfo 1755800511
getaddrinfo: No address associated with hostname

...which should do the same as...

# getaddrinfo 104.167.99.191
dgram inet udp 104.167.99.191 0
stream inet tcp 104.167.99.191 0

>Fix:
The fix is well covered in the foregoing.

>Release-Note:

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50552 CVS commit: src/lib/libc/net
Date: Mon, 14 Dec 2015 17:07:37 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Mon Dec 14 22:07:37 UTC 2015

 Modified Files:
 	src/lib/libc/net: getaddrinfo.c

 Log Message:
 PR/50552: Kyle Amon: RFC3493 section 6.1 wants us to accept non-dotted-quad
 INET4 addresses.
 XXX: pullup-7


 To generate a diff of this commit:
 cvs rdiff -u -r1.112 -r1.113 src/lib/libc/net/getaddrinfo.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->needs-pullups
State-Changed-By: maxv@NetBSD.org
State-Changed-When: Sun, 25 Feb 2018 18:47:16 +0000
State-Changed-Why:


State-Changed-From-To: needs-pullups->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 13 Aug 2021 21:32:03 +0000
State-Changed-Why:
-7 is eol, pullups no longer relevant


>Unformatted:
 >System: NetBSD nbsd4e.backwatcher.com 7.0 NetBSD 7.0 (GENERIC.201509250726Z) amd64
 >Architecture: x86_64
 >Machine: amd64

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.