Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <427AEA95.7010207@byu.net>
Date: Thu, 05 May 2005 21:55:01 -0600
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: Paul Eggert <eggert@CS.UCLA.EDU>
CC: "Pierre A. Humblet" <Pierre.Humblet@ieee.org>, cygwin@cygwin.com,
   bug-coreutils@gnu.org
Subject: Re: mkdir -p and network drives
References: <3.0.5.32.20050502232204.00b52180@incoming.verizon.net> <42777719.8090103@byu.net> <8764xym6vf.fsf@penguin.cs.ucla.edu> <427AD935.1010409@byu.net> <87vf5x818r.fsf@penguin.cs.ucla.edu>
In-Reply-To: <87vf5x818r.fsf@penguin.cs.ucla.edu>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Paul Eggert on 5/5/2005 9:47 PM:
>>Oops - buffer overflow bug.  dirpath[2] is past the end of the string on
>>dirpath of "/",
> 
> If dirpath is "/", then dirpath[1] != '/' is true, so dirpath[2] isn't
> evaluated.

Oh well - chalk that one up to me not reading closely enough after a long
day.  I should learn not to hit send before re-reading :)  But my other
comment about dirpath being allocated with alloca on potentially unlimited
length input is still an issue.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCeuqU84KuGfSFAYARAsPuAJ0Sz/Z7WqJElt5r0CY2iQSW23NjhgCfXQcl
1ruNPfUt1egZkV7z1m98bTc=
=tl8M
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

