From owner-freebsd-bugs@FreeBSD.ORG Thu Sep 15 04:50:25 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 137F616A41F for ; Thu, 15 Sep 2005 04:50:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD11D43D45 for ; Thu, 15 Sep 2005 04:50:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8F4oOO1045351 for ; Thu, 15 Sep 2005 04:50:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8F4oOmS045350; Thu, 15 Sep 2005 04:50:24 GMT (envelope-from gnats) Date: Thu, 15 Sep 2005 04:50:24 GMT Message-Id: <200509150450.j8F4oOmS045350@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Andrey Chernov Cc: Subject: Re: bin/86135: Fwd: Latent buffer overflow in getcwd X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andrey Chernov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 04:50:25 -0000 The following reply was made to PR kern/86135; it has been noted by GNATS. From: Andrey Chernov To: Bruce Evans , Trevor Blackwell , 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/