From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C36943858298; Wed, 1 Nov 2023 01:59:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C36943858298 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1698803989; bh=7uvqiTgNhbUahp17MM9Ef574QcITMLEbUQiDnb5UEqo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MhmaW053+fqVELFKz435F35fn3NSHVUeGaGsKiHN82U8rAxnUa092tJDT9LIP0CU+ xb0cPiXqfyWwqWu/sXZVhiYry2jtdRlup4NLNKtgLas6b+Dd5gM9zNUDtvwBIL4i/g GsWsbBTgn49Y937CjfT0zTds/0M1S9b/01w6+Mjo= From: "bruno at clisp dot org" To: glibc-bugs@sourceware.org Subject: [Bug libc/1890] strerror() unnecessarily non thread-safe Date: Wed, 01 Nov 2023 01:59:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.3.6 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bruno at clisp dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 2.32 X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D1890 Bruno Haible changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bruno at clisp dot org --- Comment #9 from Bruno Haible --- Note that this return convention (returning a pointer to a per-thread buffe= r) has a pitfall: If the returned pointer ever gets passed to a different thread, value corruption will occur, that is hard to detect and to debug. (Because while = the second thread is storing, printing, or logging the value, the first thread = may write different contents into it.) --=20 You are receiving this mail because: You are on the CC list for the bug.=