Date: Thu, 15 Sep 2005 04:50:24 GMT From: Andrey Chernov <ache@FreeBSD.ORG> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/86135: Fwd: Latent buffer overflow in getcwd Message-ID: <200509150450.j8F4oOmS045350@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/86135; it has been noted by GNATS. 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 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509150450.j8F4oOmS045350>