[Bug stdio/31183] Wide stream buffer size reduced MB_LEN_MAX bytes after bug 17522 fix

fweimer at redhat dot com sourceware-bugzilla@sourceware.org
Tue Jan 2 13:43:45 GMT 2024


https://sourceware.org/bugzilla/show_bug.cgi?id=31183

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
   Target Milestone|---                         |2.39

--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
Fixed for 2.39 via:

commit ecc7c3deb9f347649c2078fcc0f94d4cedf92d60
Author: Florian Weimer <fweimer@redhat.com>
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)").

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list