New Netscape bug (in version 1.12)

Jeff Weinstein jsw at netscape.com
Wed Oct 4 16:18:20 PDT 1995


On Oct 4, 11:00am, sameer wrote:
> Subject: Re: New Netscape bug (in version 1.12)
> 	Isn't there a resolver #define or something in limits.h called
> MAXHOSTNAMELEN ? Something like that? (Perhaps not, but that's what I
> recall..)

  We are using MAXHOSTNAMELEN if it exists, both in 2.0, and in the
security patch that we shipped.  If it doesn't exist we just assume 64.
As a quick sample, on sunos and irix it is 64, and on solaris it is 256.
On sunos and irix it is defined in sys/param.h, and on solaris it is
defined in netdb.h.  I wasn't able to find any mention of it or any
other limits on the host names passed in to gethostbyname() in the
man pages on any of these systems.

	--Jeff


Jeff Weinstein - Electronic Munitions Specialist
Netscape Communication Corporation
jsw at netscape.com - http://home.netscape.com/people/jsw
Any opinions expressed above are mine.






More information about the cypherpunks-legacy mailing list