From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_ADSP_ALL, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29664 invoked from network); 13 Apr 2022 00:15:34 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 13 Apr 2022 00:15:34 -0000 Received: (qmail 18274 invoked by uid 550); 13 Apr 2022 00:15:31 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 18238 invoked from network); 13 Apr 2022 00:15:31 -0000 Date: Tue, 12 Apr 2022 17:15:18 -0700 From: "Gary E. Miller" To: musl@lists.openwall.com Message-ID: <20220412171518.446302cb@spidey.rellim.com> In-Reply-To: References: <20220412134355.59bd920e@spidey.rellim.com> <1649796698.dhgj3g2orq.none@localhost> <20220412140724.7d3caca4@spidey.rellim.com> Organization: Rellim X-Mailer: Claws Mail 4.1.0 (GTK 3.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/A.hCkyX.r3Zj20HWaF5_WmW"; protocol="application/pgp-signature"; micalg=pgp-sha512 Subject: Re: [musl] =?UTF-8?B?4pyYc3RyZXJyb3Jfcigp?= bug in musl --Sig_/A.hCkyX.r3Zj20HWaF5_WmW Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Yo Wolf! On Wed, 13 Apr 2022 01:16:34 +0200 Wolf wrote: > On 2022-04-12 14:07:24 -0700, Gary E. Miller wrote: > > If you gonna leave the code as is, then fix the doc. gpsd has > > struggled with this bug for years until I tracked it down. =20 >=20 > How did you even managed to compile it when the function returned int > instead of char*? Hard to believe the compiler did not complain... It compiles fine, and runs fine, until it crashes. The return value was never used, so no warning generated. The three variants of strerror_r() differ in more than just their return value. Yes, I know, sloppy, which is why I'm trying to problems like this one. RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703 gem@rellim.com Tel:+1 541 382 8588 Veritas liberabit vos. -- Quid est veritas? "If you can't measure it, you can't improve it." - Lord Kelvin --Sig_/A.hCkyX.r3Zj20HWaF5_WmW Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIzBAEBCgAdFiEEDImNR/2vUKZZKLG0LmvF3i7oaj4FAmJWFhYACgkQLmvF3i7o aj4DJA//UIrdcwTd3yUpOpdIQSeCfD+c5/5y53E0qsSSmfl7VAibpXohbP/k9gVp roTI07pN8ukKqv+bBtgGQOAcYznmmj/WoehlUDugquBZSzo7SrsVqpLPoOUz4+Vl 2OcVCjpCfmYEdegqk4POlFgHtuB85wa4ORY15O0xN6/fd26ByU884zdczpGP4bA8 2H66GBgdxBBxNfnWKjaVQiedL0hzz/3LWd8olESTueZW1fNUtZfN+eEle3AdM92m OLVKDrzH1fEb3SNDPMCGY0BCKbGmGTlIa2Jf1zFQAFdCVLN8RLcqscLp9MLc8kC5 f9heAZgOuX9Yvr61C5RMIu6W6WPDtjBXbKsvQ6F8aPAh84Eq3aaLxbpBtIE/pTRA dcujwu6ph9nO7MnGNFHcgte+b5LyirO3k9rrn8kFqSjbgY+T6TchL1G6+g6J3JHq SRse/RFYXcNbXtsl2IdDzwbBJNzPgfs0ZtDBZ0qPHCEI5ru7qjlfXONowRzJHpzP Fb1Mq4hVOR6Xjxwgwqg/obbvNBTmz3RingKbe0kbK9wrhhgSlBVQyfy+U3CBVblp L1A/n4Sjk+qfnpvDtDE4GxPlE89lmWLXMJMWcI+kRnEGLKvDEmeqjXbxpGfwEROD ZXR0t57O9e4oms8dnZsq00gzxR045yFmJU0GQrc6hVeOxufjQw0= =S9VB -----END PGP SIGNATURE----- --Sig_/A.hCkyX.r3Zj20HWaF5_WmW--