[Bug 224403] getaddrinfo() resolves "127.0.0.1 www.example.com" to 127.0.0.1
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Dec 17 15:01:11 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224403
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 at FreeBSD.org
Reporter: freebsd-bugzilla at michael-kaufmann.ch
Created attachment 188913
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=188913&action=edit
Test program for getaddrinfo()
getaddrinfo() uses inet_aton(), which ignores trailing spaces after numerical
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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-standards
mailing list