cygpath bug converting really long filenames

Jesper Eskilson jojo@virtutech.com
Fri Jan 24 15:31:00 GMT 2003


Hi!

The attached shell-script causes cygpath to malfunction by trying to
convert a long string of z:s using 'cygpath -w'. It begins by trying "z",
then "zz", and so on.

When trying more than 240 z:s, the result becomes garbled. For example:

246 zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzÿÿÿÿNTFS

and at 249 z:s cygpath fails and says "error converting ...".

Smells like a buffer overrun somewhere.

-- 
/Jesper
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygpath-bug.sh
Type: application/x-sh
Size: 111 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20030124/59893be0/attachment.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 21049 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20030124/59893be0/attachment.obj>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list