Date: Sun, 17 Dec 2017 15:01:11 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-standards@FreeBSD.org Subject: [Bug 224403] getaddrinfo() resolves "127.0.0.1 www.example.com" to 127.0.0.1 Message-ID: <bug-224403-15@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224403 Bug ID: 224403 Summary: getaddrinfo() resolves "127.0.0.1 www.example.com" to 127.0.0.1 Product: Base System Version: 11.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: standards Assignee: freebsd-standards@FreeBSD.org Reporter: freebsd-bugzilla@michael-kaufmann.ch Created attachment 188913 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D188913&action= =3Dedit Test program for getaddrinfo() getaddrinfo() uses inet_aton(), which ignores trailing spaces after numeric= al IP addresses. This means that getaddrinfo() resolves the hostname "127.0.0.1 www.example.com" to the IP address 127.0.0.1. Please see the attached example program. This bug is also present in some other operating systems, please see https://github.com/curl/curl/pull/2073 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224403-15>