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:to:from:subject:message-id:date:mime-version | |
:content-type; q=dns; s=default; b=UoeBs7QyxdmDgjKGQH1cFsngopvIZ | |
JAN9vm2H8QAGXwC+vja+KIK0MFZ3qbN2K46/HvxaplMxn5t3zaXtQR3tpQBPSALT | |
VPN/yZgt0/HAXQUHHB4f+/cDpi3BIUWEI3k8o+5PjXFRa0w6RjJGUwgz4hlRWiFk | |
GEUWnzfxu4w12A= | |
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:to:from:subject:message-id:date:mime-version | |
:content-type; s=default; bh=kyHvE3299x3AohkYd7wEax4FCFw=; b=l+8 | |
ngAVEiEACx4NPf6HIMzI1MvjRtMUqDIg3dx29vcAMSeon98OGTcI3cPA0uhaEcAS | |
kji5s7GVNKrsB3cB9wnYghdDG0/lo2j2qidkWyqGmFjVniNLn+UrYWFHSL/tLIOC | |
IlTpk91VJJ6HMaTcmp48xWe1PR3LTWb6v/ucj098= | |
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-Spam-SWARE-Status: | No, score=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=HX-Spam-Relays-External:sk:broadba, H*UA:x64, H*UA:Win64, lz |
X-HELO: | mail-lf1-f43.google.com |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:autocrypt:subject:message-id:date:user-agent:mime-version; bh=D2/6qG4eqxuoZQYRV2iXfK3uvwXYoxeBCd/5DSLeilo=; b=BKQycySZieZzB+aXZHn4mN/7FAnhSB7ViV63eQdJd526R55LNYyqoOMqW1i/fdAQRJ JgQknLWFdxhshuUqswnHPiFf/r50/9mx+R8D2QmdpTPbn6Ml+ZL8t8IThHVnlzw0G1JG Yc+SZz4FmU3wGUND9wMnIeO7NBFAwDVDLSKzYLWJXfPW8MFWEd7nfvPyjj2/1msHsHX4 R2hR3VqO5BPPhbYHGgLPqm6xOZNjxNOSE232TaSJaQhuZITG3Dcy/ZOFXeS/1HDZAUh8 USP70vis1dLNWOSuV7EnqH9YVJtw9Cne9NHBSdsLxpm1CDxFt0P2m5ps7e1R5VMO8rPy 6tPw== |
To: | cygwin AT cygwin DOT com |
From: | LRN <lrn1986 AT gmail DOT com> |
Subject: | wcsxfrm() with empty locale crashes the runtime |
Message-ID: | <02f956fa-e872-87ba-9ab0-f10afc494a02@gmail.com> |
Date: | Tue, 19 Mar 2019 22:28:40 +0300 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
--h3EVDVs5PR9HAZj6zsTArqn90pJgFqRgO Content-Type: multipart/mixed; boundary="UDNHIAmM0ZiMkCghyluA7w1qQACBxGFnI"; protected-headers="v1" From: LRN <lrn1986 AT gmail DOT com> To: cygwin AT cygwin DOT com Message-ID: <02f956fa-e872-87ba-9ab0-f10afc494a02 AT gmail DOT com> Subject: wcsxfrm() with empty locale crashes the runtime --UDNHIAmM0ZiMkCghyluA7w1qQACBxGFnI Content-Type: multipart/mixed; boundary="------------1B61164F24D0300C17421CD0" Content-Language: en-US This is a multi-part message in MIME format. --------------1B61164F24D0300C17421CD0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable The testcase is attached. Running it with Cygwin-i386 leads to a crash. My guess is that the implementation is not POSIX-conformant and tries to dereference the first argument (NULL), even though the third argument is 0. Tested with Cygwin-3.0.4. --------------1B61164F24D0300C17421CD0 Content-Type: text/plain; charset=UTF-8; name="wcsxfrm_test.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="wcsxfrm_test.c" I2luY2x1ZGUgPHdjaGFyLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1 ZGUgPGxvY2FsZS5oPgoKaW50Cm1haW4gKCkKewogIHdjaGFyX3Qgd1syXSA9 IHsgTCd6JywgTCdcMCcgfTsKICBzZXRsb2NhbGUgKExDX0FMTCwgIiIpOwog IGludCBsID0gd2NzeGZybSAoTlVMTCwgdywgMCk7CiAgcmV0dXJuIGw7Cn0K --------------1B61164F24D0300C17421CD0-- --UDNHIAmM0ZiMkCghyluA7w1qQACBxGFnI-- --h3EVDVs5PR9HAZj6zsTArqn90pJgFqRgO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE4MWzR43wYaAzEA49ja3pJ2dZunQFAlyRQukACgkQja3pJ2dZ unQ1QxAAortbckmnetBtkerP8F/pCESBrTh3xLe3M6R0Gp04l3M9lOQiVSPcOrU4 7rp4EQC+7nKcoQqWNpJJlUREFztDBX9VwQOQsvH51WNCqic8ZyqIPoUQd1D+TTQj qs1+VyNMmCB9+E6xFbIeT/xU330tU+saMALsdUjGVqMNiUgGt1+Om59kut3nWWEH EybhSwsJwBPL1I74ThkSH4GUvKGSf9Nn3uZKxpsPq8/Nt2M7YAzZ9QWXed2vbCl8 JhUzH+qgf4+BQcjwM2pKrELHtqCSURNEWdcQPthJLXKxsnXWdgVeJwEise/qCscb OlwPAimFhcclrHJC4JFmU3FO/IpQmefQm0YhDBsUJt2ipKGScGbacoS9AZ+5+HQm K9hy8N3xXratlrAkQKc6UdG8OD5yHnQVwcFUby8Zptgdu3XU8pJm9OURQvljcegh 25RP4tHW+a3tKvy1vlh+SioUeNudZf1Qydsp7H8LNHlLfY4QsfOKFRfU9ci6kOQi LLlJROFqN1hF4DOd/hx59HwvJJafssFMXcl2jepF0yEGHIGMtId5tkk9Pk6ZRWLI e/Q1ltYFSaSQZCQm99NpUAiX0RmwJb5Pyub9yvnVLWSlaNPCIve1I5Voo4XiqukP HphuewmajucG96B9NQ5XKtIZZrSiLi1jJQkuIs7m7/6Nc6ui1bQ= =9AWw -----END PGP SIGNATURE----- --h3EVDVs5PR9HAZj6zsTArqn90pJgFqRgO--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |