diff options
author | Florian Weimer <fweimer@redhat.com> | 2024-01-02 14:36:17 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2024-01-31 17:24:51 +0100 |
commit | 32f6b0cd3d35a4b8ff091e6b8277ee9aaa593567 (patch) | |
tree | 1610bb61cb960376699d9cc7e90bddeddc286d76 /nss/tst-nss-gai-actions.c | |
parent | getaddrinfo: translate ENOMEM to EAI_MEMORY (bug 31163) (diff) | |
download | glibc-32f6b0cd3d35a4b8ff091e6b8277ee9aaa593567.tar.gz glibc-32f6b0cd3d35a4b8ff091e6b8277ee9aaa593567.tar.bz2 glibc-32f6b0cd3d35a4b8ff091e6b8277ee9aaa593567.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)").
(cherry picked from commit ecc7c3deb9f347649c2078fcc0f94d4cedf92d60)
(cherry picked from commit bd9f194c34333c0148fc0a793b8e68e2399f27cb)
Diffstat (limited to 'nss/tst-nss-gai-actions.c')
0 files changed, 0 insertions, 0 deletions