Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Feb 2003 07:51:48 +0600
From:      Max Khon <fjoe@iclub.nsu.ru>
To:        David Leimbach <leimy2k@mac.com>
Cc:        freebsd-standards@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: error in nsdispatch.c
Message-ID:  <20030212075148.A20509@iclub.nsu.ru>
In-Reply-To: <8D9D58E8-3E2A-11D7-8396-0003937E39E0@mac.com>; from leimy2k@mac.com on Tue, Feb 11, 2003 at 07:37:31PM -0600
References:  <8D9D58E8-3E2A-11D7-8396-0003937E39E0@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
hi, there!

On Tue, Feb 11, 2003 at 07:37:31PM -0600, David Leimbach wrote:

> There is a potential bug in src/lib/libc/net/nsdispatch.c
> 
> in the function
> const ns_dbt * _nsdbtget(const char * name).
> 
> The static variable
> 
> static time_t confmod;
> 
> is not initialized to anything.
> 
> It may have some random value the first time this function is called and
> if you look at the program logic its the first value tested as well and 
> it controls a lot of deallocation via "free".
> 
> Bug?

no. static variables are initialized with all-zeroes.

/fjoe


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030212075148.A20509>