From owner-freebsd-standards Tue Feb 11 17:53: 0 2003 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F39C37B401; Tue, 11 Feb 2003 17:52:59 -0800 (PST) Received: from mail.nsu.ru (mx.nsu.ru [193.124.215.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FAFC43FAF; Tue, 11 Feb 2003 17:52:58 -0800 (PST) (envelope-from fjoe@iclub.nsu.ru) Received: from drweb by mail.nsu.ru with drweb-scanned (Exim 3.20 #1) id 18im4k-0007XD-00; Wed, 12 Feb 2003 07:52:38 +0600 Received: from iclub.nsu.ru ([193.124.215.97] ident=root) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 18im4D-0007LF-00; Wed, 12 Feb 2003 07:52:05 +0600 Received: from iclub.nsu.ru (fjoe@localhost [127.0.0.1]) by iclub.nsu.ru (8.12.6/8.12.6) with ESMTP id h1C1pnRV020615; Wed, 12 Feb 2003 07:51:49 +0600 (NS) (envelope-from fjoe@iclub.nsu.ru) Received: (from fjoe@localhost) by iclub.nsu.ru (8.12.6/8.12.6/Submit) id h1C1pmYU020613; Wed, 12 Feb 2003 07:51:48 +0600 (NS) Date: Wed, 12 Feb 2003 07:51:48 +0600 From: Max Khon To: David Leimbach Cc: freebsd-standards@freebsd.org, freebsd-current@freebsd.org Subject: Re: error in nsdispatch.c Message-ID: <20030212075148.A20509@iclub.nsu.ru> References: <8D9D58E8-3E2A-11D7-8396-0003937E39E0@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <8D9D58E8-3E2A-11D7-8396-0003937E39E0@mac.com>; from leimy2k@mac.com on Tue, Feb 11, 2003 at 07:37:31PM -0600 X-Spam-Status: No, hits=-2.2 required=5.0 tests=IN_REP_TO,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT, USER_AGENT_MUTT version=2.43 X-Envelope-To: leimy2k@mac.com, freebsd-standards@freebsd.org, freebsd-current@freebsd.org Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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