delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/12/20:38:50

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,HK_OBFDOM
X-Spam-Check-By: sourceware.org
Message-ID: <324155.58483.qm@web88307.mail.re4.yahoo.com>
X-RocketYMMF: ilatypov
Date: Fri, 12 Feb 2010 17:38:36 -0800 (PST)
From: Ilguiz Latypov <ilatypov AT infradead DOT org>
Subject: a bug in cygpath
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--0-434228494-1266025116=:58483
Content-Type: text/plain; charset=us-ascii


This caused Cygwin to run dumper.exe which pointed to a bug in cygpath.cc.

  $ cygpath -p -w 'gggggggggggggggggggggggggggggggggggg'
  gggggggggggggggggggggggggggggggggggg


I am attaching a patch that seems to have fixed the issue.

-- 
--0-434228494-1266025116=:58483
Content-Type: text/plain; name="cygpath.cc.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="cygpath.cc.txt"

SW5kZXg6IGN5Z3BhdGguY2MKPT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1Mg
ZmlsZTogL2N2cy9zcmMvc3JjL3dpbnN1cC91dGlscy9jeWdwYXRoLmNjLHYK
cmV0cmlldmluZyByZXZpc2lvbiAxLjU5CmRpZmYgLWQgLXUgLXIxLjU5IGN5
Z3BhdGguY2MKLS0tIGN5Z3BhdGguY2MJMTYgSmFuIDIwMTAgMTA6MjU6NTgg
LTAwMDAJMS41OQorKysgY3lncGF0aC5jYwkxMyBGZWIgMjAxMCAwMTozNDow
OSAtMDAwMApAQCAtNzcyLDggKzc3Miw2IEBACiAJICAgICAgYnVmID0gZ2V0
X2xvbmdfbmFtZSAodG1wID0gYnVmLCBsZW4pOwogCSAgICAgIGZyZWUgKHRt
cCk7CiAJICAgIH0KLQkgIC8qIGJ1ZiBnZXRzIG1vdmVkIGludG8gdGhlIGFy
cmF5IHNvIHdlIGhhdmUgdG8gc2V0IHRtcCBmb3IgbGF0ZXIKLQkgICAgIGZy
ZWVpbmcgYmVmb3JlaGFuZC4gKi8KIAkgIHRtcCA9IGJ1ZjsKIAkgIGlmIChz
dHJuY21wIChidWYsICJcXFxcP1xcIiwgNCkgPT0gMCkKIAkgICAgewpAQCAt
NzgyLDEzICs3ODAsMTMgQEAKIAkJbGVuID0gNjsKIAkgICAgICBpZiAoc3Ry
bGVuIChidWYpIDwgTUFYX1BBVEggKyBsZW4pCiAJCXsKLQkJICBidWYgKz0g
bGVuOworCQkgIHRtcCArPSBsZW47CiAJCSAgaWYgKGxlbiA9PSA2KQotCQkg
ICAgKmJ1ZiA9ICdcXCc7CisJCSAgICAqdG1wID0gJ1xcJzsKIAkJfQogCSAg
ICB9CiAJICBpZiAobWl4ZWRfZmxhZykKLQkgICAgY29udmVydF9zbGFzaGVz
IChidWYpOworCSAgICBjb252ZXJ0X3NsYXNoZXMgKHRtcCk7CiAJfQogICAg
IH0KIApAQCAtNzk2LDcgKzc5NCw3IEBACiAgIGlmIChidWYyKQogICAgIGZy
ZWUgKGJ1ZjIpOwogICBpZiAoYnVmKQotICAgIGZyZWUgKHRtcCk7CisgICAg
ZnJlZSAoYnVmKTsKIH0KIAogc3RhdGljIHZvaWQK


--0-434228494-1266025116=:58483
Content-Type: text/plain; charset=us-ascii

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019