aboutsummaryrefslogtreecommitdiff
path: root/libio/tst-wfile-sync.input
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2019-05-14 17:14:59 +0200
committerAndreas Schwab <schwab@suse.de>2019-05-15 16:47:09 +0200
commit32ff397533715988c19cbf3675dcbd727ec13e18 (patch)
treefb529b404d7136b24968ebbf8618af9ea13c7b79 /libio/tst-wfile-sync.input
parenta9368c34d70cef91ca59b09941f496df11d6b146 (diff)
downloadglibc-32ff397533715988c19cbf3675dcbd727ec13e18.zip
glibc-32ff397533715988c19cbf3675dcbd727ec13e18.tar.gz
glibc-32ff397533715988c19cbf3675dcbd727ec13e18.tar.bz2
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.
Diffstat (limited to 'libio/tst-wfile-sync.input')
-rw-r--r--libio/tst-wfile-sync.input1
1 files changed, 1 insertions, 0 deletions
diff --git a/libio/tst-wfile-sync.input b/libio/tst-wfile-sync.input
new file mode 100644
index 0000000..12d0958
--- /dev/null
+++ b/libio/tst-wfile-sync.input
@@ -0,0 +1 @@
+This is a test of _IO_wfile_sync.