Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Sep 2005 08:48:47 +0400
From:      Andrey Chernov <ache@FreeBSD.ORG>
To:        Bruce Evans <bde@zeta.org.au>, Trevor Blackwell <tlb@tlb.org>, freebsd-bugs@FreeBSD.ORG, FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   Re: bin/86135: Fwd: Latent buffer overflow in getcwd
Message-ID:  <20050915044847.GA26955@nagual.pp.ru>
In-Reply-To: <20050915043553.GA26630@nagual.pp.ru>
References:  <1126728802.42486.3239.camel@lab> <20050915120351.Q43928@delplex.bde.org> <20050915043553.GA26630@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 15, 2005 at 08:35:53AM +0400, Andrey Chernov wrote:
> While it can be so for "up", it is not so for "ep", since it is
> filled by __getcwd() syscall and can't be bigger.

I mean common normal situation, i.e. when __getcwd() returns 0.
Allocating anything else than MAXPATHLEN in that situation will 
be a waste.

-- 
http://ache.pp.ru/



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