diff options
author | 2024-01-02 14:36:17 +0100 | |
---|---|---|
committer | 2024-01-02 14:36:17 +0100 | |
commit | ecc7c3deb9f347649c2078fcc0f94d4cedf92d60 (patch) | |
tree | abe55d643161698f999e9c95e0fbec43d140ce44 /stdlib | |
parent | getaddrinfo: translate ENOMEM to EAI_MEMORY (bug 31163) (diff) | |
download | glibc-ecc7c3deb9f347649c2078fcc0f94d4cedf92d60.tar.xz glibc-ecc7c3deb9f347649c2078fcc0f94d4cedf92d60.zip |
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)").
Diffstat (limited to 'stdlib')
0 files changed, 0 insertions, 0 deletions