]> git.ipfire.org Git - thirdparty/glibc.git/commit
Fix crash in _IO_wfile_sync (bug 20568)
authorAndreas Schwab <schwab@suse.de>
Tue, 14 May 2019 15:14:59 +0000 (17:14 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 15 May 2019 15:08:48 +0000 (17:08 +0200)
commitd948478bc586dec2fe3edd49e8e55f3893b3f854
tree8ac6342749cebddf2133e5f7919c5fc57704e516
parent4a5e58827f2b6efa94ea50a9db5f3c861173837f
Fix crash in _IO_wfile_sync (bug 20568)

When computing the length of the converted part of the stdio buffer, use
the number of consumed wide characters, not the (negative) distance to the
end of the wide buffer.

(cherry picked from commit 32ff397533715988c19cbf3675dcbd727ec13e18)
ChangeLog
NEWS
libio/Makefile
libio/tst-wfile-sync.c [new file with mode: 0644]
libio/tst-wfile-sync.input [new file with mode: 0644]
libio/wfileops.c