From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 10AF23858C78; Tue, 2 Jan 2024 13:43:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 10AF23858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1704203026; bh=DPQoHjuHk68YO1hvmpIYPkLD0VemgB+c5oCKhkltp14=; h=From:To:Subject:Date:In-Reply-To:References:From; b=NySaODI/jOHIqk9VbAoUMZt77hdEdJ99bRYaH87NZ8BLd5g95bPgXqPZYDWLCkeK8 eF5FwqR0MItig493bXlN4KN0GIvQbVTbrHJ1kZ3k3mI52/xV4gmokVGp8ff41xpT8L PdoBeRjPfdLjWFVITDLX8zyy/zfodsEm3DAsstPY= From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug stdio/31183] Wide stream buffer size reduced MB_LEN_MAX bytes after bug 17522 fix Date: Tue, 02 Jan 2024 13:43:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: stdio X-Bugzilla-Version: 2.21 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: fweimer at redhat dot com X-Bugzilla-Target-Milestone: 2.39 X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: resolution bug_status target_milestone 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=3D31183 Florian Weimer changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED Target Milestone|--- |2.39 --- Comment #2 from Florian Weimer --- Fixed for 2.39 via: commit ecc7c3deb9f347649c2078fcc0f94d4cedf92d60 Author: Florian Weimer Date: Tue Jan 2 14:36:17 2024 +0100 libio: Check remaining buffer size in _IO_wdo_write (bug 31183) The multibyte character needs to fit into the remaining buffer space, not the already-written buffer space. Without the fix, we were never moving the write pointer from the start of the buffer, always using the single-character fallback buffer. Fixes commit 04b76b5aa8b2d1d19066e42dd1 ("Don't error out writing a multibyte character to an unbuffered stream (bug 17522)"). --=20 You are receiving this mail because: You are on the CC list for the bug.=