bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where is the address parser?


From: Andreas Jaeger
Subject: Re: Where is the address parser?
Date: 04 Mar 2001 18:11:40 +0100
User-agent: Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.1 (Channel Islands)

"Andre' Breiler" <address@hidden> writes:

> On Sat, 3 Mar 2001, Jan Rekorajski wrote:
> 
> > I added bug-glibc to CC, looks like glibc 2.2 resolver is broken.
> 
> Yes, you are right. The bug is in inet_aton().
> It's happy with 4 points in the IP (but should complain about the 4th
> point).
> A patch is attached.
> 
> > On Sat, 03 Mar 2001, Andre' Breiler wrote:
> >
> > > Have you tried a "ping 10.1.2.3.4" to make sure that the resolver doesn't
> > > resolve this name to an ip.
> >
> > It look like resolver bug, which version of (g)libc do you have?
> > It's gethostbyname that makes 10.1.2.7 from 10.1.2.3.4.
> >
> > address@hidden baggins]$ rpm -q glibc
> > glibc-2.2.2-1
> >
> > address@hidden baggins]$ ping 10.1.2.3.4
> > PING 10.1.2.3.4 (10.1.2.7): 56 data bytes
> 
> Bye Andre

Thanks, I've added the patch together with a testcase to glibc,

Andreas

2001-03-04  Andreas Jaeger  <address@hidden>

        * resolv/tst-aton.c: Add testcase for IP with four points.

        * resolv/inet_addr.c: Don't recognize an IP with four points.
        Patch by Andre' Breiler <address@hidden>.


-- 
 Andreas Jaeger
  SuSE Labs address@hidden
   private address@hidden
    http://www.suse.de/~aj



reply via email to

[Prev in Thread] Current Thread [Next in Thread]