From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9189D382EA15; Sat, 27 Aug 2022 00:27:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9189D382EA15 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1661560038; bh=cGdSz70RK75WesMdwEeGRPVPdo8lZRY3cRWOdbwWFuQ=; h=From:To:Subject:Date:From; b=KfqPgtBodKoWOXRc/YPhLGcgSKArojC5UTqutT3y3iL/YSj7ImrsztF6RXJ0yNyb1 FQqeCLCwMRCeVLWZeCZXlXIzETkCH24avYCnInWmXg31RxEZY3/4u9wveBjyMgcxec zptYRF/ve/SGeP0TaJbekYagmKIg/dQehdRPxdcM= From: "godlygeek at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/29530] New: segfault in printf handling thousands separator Date: Sat, 27 Aug 2022 00:27:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: godlygeek at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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=3D29530 Bug ID: 29530 Summary: segfault in printf handling thousands separator Product: glibc Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: godlygeek at gmail dot com CC: drepper.fsp at gmail dot com Target Milestone: --- printf segfaults when running: ``` #include #include int main() { setlocale(LC_ALL, "en_US.UTF-8"); printf("%'1000d\n", 1000); } ``` Godbolt reproducer: https://godbolt.org/z/oaoqMv1v7 That's glibc 2.31, which is the newest I've been able to test with. This ma= y be the same issue as db6c4935, since it is crashing in memmove under __vfprintf_internal - but if so, the impact analysis of that bug ("I believe this code ... is unreachable in prior glibc releases") seems to have been incorrect. --=20 You are receiving this mail because: You are on the CC list for the bug.=