bin/86135: Fwd: Latent buffer overflow in getcwd

Andrey Chernov ache at FreeBSD.ORG
Wed Sep 14 21:50:25 PDT 2005


The following reply was made to PR kern/86135; it has been noted by GNATS.

From: Andrey Chernov <ache at FreeBSD.ORG>
To: Bruce Evans <bde at zeta.org.au>, Trevor Blackwell <tlb at tlb.org>,
        freebsd-bugs at FreeBSD.ORG, FreeBSD-gnats-submit at FreeBSD.ORG
Cc:  
Subject: Re: bin/86135: Fwd: Latent buffer overflow in getcwd
Date: Thu, 15 Sep 2005 08:48:47 +0400

 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/


More information about the freebsd-bugs mailing list