Subject: Re: gethostbyname() bogon?
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: port-macppc
Date: 03/06/2001 10:58:28
>> [...] sshd tries to connect to a totally bogus address [...]
> I saw the same problem before 1.5 on macppc.
> src/lib/libc/net/gethnamaddr.c rev 1.33 should fix it.
So as I read it, there's a 50% chance that the danger is there (hostbuf
appears to always be 4-byte aligned, but ALIGNBYTES is 8); if the
danger is there there's a 50% chance that any particular /etc/hosts
lookup will trigger it, depending on whether the pre-address stuff
causes the two ALIGNs to align to different places. And this applies
on any port with ALIGNBYTES 8 but hostbuf only 4-byte aligned.
Is that correct? (I'm just trying to make sure I understand the
problem, since with heisenbugs I don't trust their going away to be
indication enough that they've been fixed.)
der Mouse
mouse@rodents.montreal.qc.ca
7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B