From owner-freebsd-hackers Mon Feb 19 6:57:27 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from news.lucky.net (news.lucky.net [193.193.193.102]) by hub.freebsd.org (Postfix) with ESMTP id 6A38D37B491 for ; Mon, 19 Feb 2001 06:57:09 -0800 (PST) Received: (from mail@localhost) by news.lucky.net (8.Who.Cares/8.Who.Cares) id QVY12376 for freebsd-hackers@freebsd.org; Mon, 19 Feb 2001 16:57:04 +0200 (envelope-from news@news.ntu-kpi.kiev.ua) From: "Andrey Simonenko" To: freebsd-hackers@freebsd.org Subject: Re: Staticaly allocated buffers in library. Is it correct? Date: Mon, 19 Feb 2001 16:33:02 +0300 Organization: NTUU "KPI" Message-ID: <96rash$1m1d$1@igloo.uran.net.ua> References: X-Trace: igloo.uran.net.ua 982593233 55341 10.18.54.109 (19 Feb 2001 14:33:53 GMT) X-Complaints-To: newsmaster@news.ntu-kpi.kiev.ua X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG So, if I send problem report with my patches, I should inherit usage of staticaly allocated buffers. Am I right? milunovic wrote in message news:Pine.BSF.4.21.0102171202110.400-100000@scorpion.cosmos.all.net... > -----BEGIN PGP SIGNED MESSAGE----- > > On Fri, 16 Feb 2001, Andrey Simonenko wrote: > > > I patched some library files and noted that some functions, which parse some > > configuration files, use staticaly allocated buffers. Sizes of such > > staticaly allocated buffers are 8k, 10k and so on. These buffers are used to > > hold one line from parsed file. Usually it is enough for one line, but > > really this is error (I think). > > Well since config files can be only changed by root,I don't think that > root will use too long lines to case heap overflow.So this isn't big > problem. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message