bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mkdir -p and network drives


From: Eric Blake
Subject: Re: mkdir -p and network drives
Date: Thu, 05 May 2005 21:55:01 -0600
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

-----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             address@hidden
-----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-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]