about summary refs log tree commit diff
path: root/libio/Makefile
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/Makefile
parenta9368c34d70cef91ca59b09941f496df11d6b146 (diff)
downloadglibc-32ff397533715988c19cbf3675dcbd727ec13e18.tar.gz
glibc-32ff397533715988c19cbf3675dcbd727ec13e18.tar.xz
glibc-32ff397533715988c19cbf3675dcbd727ec13e18.zip
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/Makefile')
-rw-r--r--libio/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/libio/Makefile b/libio/Makefile
index 95b91084dd..a5236c7042 100644
--- a/libio/Makefile
+++ b/libio/Makefile
@@ -65,7 +65,8 @@ tests = tst_swprintf tst_wprintf tst_swscanf tst_wscanf tst_getwc tst_putwc   \
 	tst-setvbuf1 tst-popen1 tst-fgetwc bug-wsetpos tst-fseek \
 	tst-fwrite-error tst-ftell-partial-wide tst-ftell-active-handler \
 	tst-ftell-append tst-fputws tst-bz22415 tst-fgetc-after-eof \
-	tst-sprintf-ub tst-sprintf-chk-ub tst-bz24051 tst-bz24153
+	tst-sprintf-ub tst-sprintf-chk-ub tst-bz24051 tst-bz24153 \
+	tst-wfile-sync
 
 tests-internal = tst-vtables tst-vtables-interposed tst-readline
 
@@ -212,6 +213,7 @@ $(objpfx)tst-ungetwc1.out: $(gen-locales)
 $(objpfx)tst-ungetwc2.out: $(gen-locales)
 $(objpfx)tst-widetext.out: $(gen-locales)
 $(objpfx)tst_wprintf2.out: $(gen-locales)
+$(objpfx)tst-wfile-sync.out: $(gen-locales)
 endif
 
 $(objpfx)test-freopen.out: test-freopen.sh $(objpfx)test-freopen