From owner-freebsd-audit Wed Mar 6 4:45:18 2002 Delivered-To: freebsd-audit@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 40A1837B405; Wed, 6 Mar 2002 04:45:15 -0800 (PST) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.2/8.12.2) with ESMTP id g26CiuYl099877; Wed, 6 Mar 2002 15:45:05 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.2/8.12.2/Submit) id g26Cis8B099876; Wed, 6 Mar 2002 15:44:54 +0300 (MSK) Date: Wed, 6 Mar 2002 15:44:52 +0300 From: "Andrey A. Chernov" To: Alexey Zelkin Cc: audit@FreeBSD.ORG Subject: Re: safety checking for catgets (NLS catalogs) Message-ID: <20020306124449.GB99728@nagual.pp.ru> References: <20020302202437.A1078@gate.sim.ionidea.com> <20020302184656.GA32218@nagual.pp.ru> <20020305125548.A92735@ark.cris.net> <20020305110659.GA77856@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020305110659.GA77856@nagual.pp.ru> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Mar 05, 2002 at 14:07:01 +0300, Andrey A. Chernov wrote: > On Tue, Mar 05, 2002 at 12:55:48 +0200, Alexey Zelkin wrote: > > > Actually I think it was not good idea to > > add this check each time on catgets() and will move this check to > > catalog loading stage. > > Ok, I could live with that. On second thought, not quite so. catgets() not load whole message catalog once but do it part-by-part. It means, that if I want small string from one section, whole section will be scanned, and if I want another one from another section, it will be scanned too, and it repeats. It means that sections list must be maintained indicating which sections are already scanned and which are not yet. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message