]> 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:26:58 +0000 (17:26 +0200)
commitf9c3c12f3365c3e26aa11a31c6effea7d959f0ba
tree2d6a8d82aab9c4d26fde7f883ca73d92bc8ee66b
parent1961e5c72965a428e5ff18a49c4efdcb65991347
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