From owner-freebsd-hackers Sat Feb 17 2:58: 7 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from primo.verat.net (primo.verat.net [217.26.64.130]) by hub.freebsd.org (Postfix) with ESMTP id D687737B491 for ; Sat, 17 Feb 2001 02:58:02 -0800 (PST) Received: from scorpion.cosmos.all.net (ppp-110.verat.net [217.26.65.110]) by primo.verat.net (8.9.3/8.9.3) with ESMTP id LAA30069; Sat, 17 Feb 2001 11:58:01 +0100 Received: from scorpion.cosmos.all.net (scorpion.cosmos.all.net [127.0.0.1]) by scorpion.cosmos.all.net (8.11.2/8.11.2) with ESMTP id f1HC4rY00510; Sat, 17 Feb 2001 12:04:53 GMT Date: Sat, 17 Feb 2001 12:04:49 +0000 (GMT) From: milunovic X-Sender: milunovic@scorpion.cosmos.all.net To: Andrey Simonenko Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Staticaly allocated buffers in library. Is it correct? In-Reply-To: <96jmr3$kd7$1@igloo.uran.net.ua> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -----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. Vojislav Milunovic milunovic@sendmail.ru -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQEVAwUBOo5o5C3gPLld8IkLAQGaTQf/TNY5ODLUYmylF1KEuIsw2u7CvB4MSlRu H63ZIbWtWcuwc1Dlhuqp7H8biXamtvGcOC5gpvHUMMN/6BjdOyXAmXLxNKS+X+n6 MYZ3ODXwJkhqyUxPbfz46t3VUHH95Zo6aT26odhJy2PG4ttitzS+x3cnDfIaG15C FZQE3MYhTwT1A/cjSx9T1+uWwjMvrTXeHuDZMysCyNsjAilsoZ2+jty1jDibpa15 7D8+4aEC3RWisUPaQXWPCmCoT6C9j7YXWAi/J+O0olJn/Je21GvCeSVt2pp09B0L Dv6lenAMB2/OCXruSMnmtOfxI8iSCpSeNa16DH14neqZ0fA8loOEOQ== =ggia -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message