delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=ruP8OJvd8momArXvMGVCJ/lEMFEKRDV+/7YeidgaVj6IZRsBXilss | |
ZKVe/WILBcXOO5f5sChBIWDwgOv4DaRPe6ze/WVLtDaQymn6RbMSHg6T1zD+Ot7J | |
b28bqGmXOohdOTgy7FsuWWHtRdFeKgi+zLaLDyUXN3uCoq2luuaT+w= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=Kv1i0MfMYdXdgqbmo+hiLxFXAkg=; b=N/z0+qKOj2B+XzHcaQfObAPMvwZ5 | |
tL7p3SHwZ0qkWc7zNHwmM48KrrrAV/AtceVIYa1v7Jg6sbhUS8agbz2jtSONVYE0 | |
HntINI46SEX0OkZd3ylhVxz3N7U3QmGGIoVWqgtIfrCMo1mFYepm5uTzpEahmZyq | |
eVR2LCTzwTu8p5Q= | |
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 |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-96.6 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=H*R:U*cygwin, H*MI:sk:2016041, H*R:D*cygwin.com |
X-HELO: | calimero.vinschen.de |
Date: | Tue, 12 Apr 2016 15:30:49 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: strxfrm() returns an incorrect value on a short buffer |
Message-ID: | <20160412133049.GN9870@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <20160412050722 DOT GE12445 AT mars DOT tony DOT develop-help DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <20160412050722.GE12445@mars.tony.develop-help.com> |
User-Agent: | Mutt/1.5.24 (2015-08-30) |
--wLAMOaPNJ0fu1fTG Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Apr 12 15:07, Tony Cook wrote: > strxfrm() returns an incorrect value if you supply an output buffer > and that buffer is too short for the result. >=20 > With the code following: > [...] > It appears that strxfrm() is just returning the size of the output > buffer on an overflow error rather than calling LCMapString() again > with cchDest set to zero to get the required buffer length that > strxfrm() is meant to return on a short buffer. Thanks for the testcase. I applied a patch https://sourceware.org/git/?p=3Dnewlib-cygwin.git;h=3De1854211 and created new snapshots on https://cygwin.com/snapshots/ Please give them a try. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --wLAMOaPNJ0fu1fTG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXDPiJAAoJEPU2Bp2uRE+gU1gP/2o5htPPGiBZmKunL59F4IIa g9jUTGy3BFBQM9rZLMyfy2qBHR1BeVv18bDY5lZv59LO0gyrvi1gwnsD1r8V0kZp h6GtByU9puLoVZRt7HLNYpzQabQFb+4gI3AwLRH3DJITopFoODOOVohkjPaBD5pn EXeDlmQw1UxFzBYyU4pWI7WEHSKydLwPYF3ZRmXpQIH0hSd/FDCwUgIvYuawRaCb jU8ffayjFr4eLxoergPKBGZRlHvrhz6OIanQNyTHlavWe/fQgk1FU/nCsSF+cUK7 OBFNHaUIug74bvJxez85yBJs+NJC3h5dkaU/mUenrfUcZaXc3hvdtpF8FPmuECtH M0cjT/W9KJG9as3ogwQZZmvbLa2PSOFgoqIRwQLDQ77g5NYQQiG/kjTVr1i9zYqu yMkROkPWugVDbt54To47A8zTO7p6DC+/BONziUqZOhlYDRerIQ1c71+S7eML1C1H +P4018mUW76DXc5LqCHjT4SQpyOVWvfNcWWOFkKWvTLeIkqgw8XTwgF1bLDKN+ox gL2W0vDd5b0kcRt3K0hgP8ytydatSdD2N2cKSLR06Gc7noXMpE3PqZ/RSawBiy2k Thmy+9dMXbHu5kd15o+/sK7TuRCG3g6A28068VYvr2RoNsMRkdB1PTGL49A/SnhO x0w3lcws8QWh+4B20YiW =c9bF -----END PGP SIGNATURE----- --wLAMOaPNJ0fu1fTG--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |