about summary refs log tree commit diff
path: root/sunrpc/netname.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-01-02 14:36:17 +0100
committerFlorian Weimer <fweimer@redhat.com>2024-01-02 14:39:31 +0100
commitbd9f194c34333c0148fc0a793b8e68e2399f27cb (patch)
treefe75a8bb6d891a768e06f35bbffbb39ed18101cf /sunrpc/netname.c
parent9b90e763dbee9899c5521481db6d4e92772ef526 (diff)
downloadglibc-bd9f194c34333c0148fc0a793b8e68e2399f27cb.tar.gz
glibc-bd9f194c34333c0148fc0a793b8e68e2399f27cb.tar.xz
glibc-bd9f194c34333c0148fc0a793b8e68e2399f27cb.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)
Diffstat (limited to 'sunrpc/netname.c')
0 files changed, 0 insertions, 0 deletions