This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: gethostbyname doesn't check invalid input
- From: chrubis at suse dot cz
- To: Mikulas Patocka <mikulas at artax dot karlin dot mff dot cuni dot cz>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 8 Oct 2012 16:11:33 +0200
- Subject: Re: gethostbyname doesn't check invalid input
- References: <alpine.DEB.2.00.1210030043310.16300@artax.karlin.mff.cuni.cz>
Hi!
> What is even more weird - that Linux/glibc, Solaris, NetBSD and HP-UX all
> behave in the same way - they accept a space and a trailing garbage after
> numeric ipv4 address.
I would guess that they are all based on some version of BIND. At least
the resolv/README packged with glibc source says that it's based on
resolver part of BIND 8.
--
Cyril Hrubis
chrubis@suse.cz