glibc/libio
Ulrich Drepper 107b8a922a [BZ #1996]
2006-08-14  Ulrich Drepper  <drepper@redhat.com>
	[BZ #1996]
	* libio/memstream.c (open_memstream): Allocate initial buffer with
	calloc.
	* libio/wmemstream.c (open_wmemstream): Likewise.
	* libio/strops.c: Pretty printing.
	(_IO_str_overflow): Clear uninitialized part of the new buffer.
	(enlarge_userbuf): New function.
	(_IO_str_seekoff): Call it if seek position is larger than current
	buffer.
	* libio/wstrops.c: Likewise.
	* libio/vasprintf.c: Add comment as to why we do not have to use
	calloc instead of malloc to allocate initial buffer.
	* libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
	* libio/bug-memstream1.c: New file.
	* libio/bug-wmemstream1.c: New file.
2006-08-14 22:16:14 +00:00
..
bits * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Use long_double_symbol 2006-02-01 19:47:57 +00:00
__fbufsize.c Update. 2002-04-09 20:36:24 +00:00
__flbf.c Update. 2002-04-09 20:36:24 +00:00
__fpending.c Update. 2002-04-09 20:36:24 +00:00
__fpurge.c Update. 2002-04-09 20:36:24 +00:00
__freadable.c Update. 2002-04-09 20:36:24 +00:00
__freading.c Update. 2002-04-09 20:36:24 +00:00
__fsetlocking.c Update. 2002-04-09 20:36:24 +00:00
__fwritable.c Update. 2002-04-09 20:36:24 +00:00
__fwriting.c Update. 2002-04-09 20:36:24 +00:00
.cvsignore
Banner
bug-fopena+.c Update. 2002-08-27 06:41:29 +00:00
bug-fseek.c Update. 2002-07-24 11:18:48 +00:00
bug-ftell.c * libio/bug-ftell.c (do_test): Add a cast. 2003-11-01 21:11:05 +00:00
bug-memstream1.c [BZ #1996] 2006-08-14 22:16:14 +00:00
bug-mmap-fflush.c Update. 2002-08-27 12:10:11 +00:00
bug-rewind2.c Update. 2002-08-26 08:08:50 +00:00
bug-rewind.c Update. 2002-08-26 08:08:50 +00:00
bug-ungetc2.c Update. 2003-09-06 09:56:14 +00:00
bug-ungetc3.c Update. 2004-11-09 07:05:27 +00:00
bug-ungetc4.c Test for ungetc bug. 2004-12-06 22:33:26 +00:00
bug-ungetc.c 2002-07-24 Roland McGrath <roland@frob.com> 2002-07-24 09:34:59 +00:00
bug-ungetwc1.c Update. 2002-04-03 09:26:58 +00:00
bug-ungetwc2.c Update. 2002-04-24 21:09:14 +00:00
bug-wfflush.c * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos. 2002-11-11 06:55:22 +00:00
bug-wmemstream1.c [BZ #1996] 2006-08-14 22:16:14 +00:00
clearerr_u.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
clearerr.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
Depend New file, libio needs localedata for tests. 2000-07-29 07:57:34 +00:00
fcloseall.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
feof_u.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
feof.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
ferror_u.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
ferror.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
filedoalloc.c Update. 2002-07-06 06:36:39 +00:00
fileno.c * locale/programs/ld-ctype.c (ctype_read): When given a repertoire 2002-08-26 11:39:12 +00:00
fileops.c (_IO_new_file_fopen): If ,ccs= is given, also set vtable to the wide vtable. 2006-01-19 00:38:35 +00:00
fmemopen.c * libio/fmemopen.c (fmemopen): Free stream memory in case of 2006-04-07 04:29:25 +00:00
fputc_u.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
fputc.c Update. 2003-08-29 19:58:49 +00:00
fputwc_u.c [BZ #2079] 2006-01-15 17:45:20 +00:00
fputwc.c [BZ #2078, BZ #2079] 2006-01-15 17:46:04 +00:00
freopen64.c Update. 2003-08-29 19:58:49 +00:00
freopen.c Update. 2003-08-29 19:58:49 +00:00
fseek.c Update. 2003-08-29 19:58:49 +00:00
fseeko64.c Update. 2003-08-29 19:58:49 +00:00
fseeko.c Update. 2003-08-29 19:58:49 +00:00
ftello64.c 2004-11-04 Jakub Jelinek <jakub@redhat.com> 2004-11-04 23:22:02 +00:00
ftello.c 2004-11-04 Jakub Jelinek <jakub@redhat.com> 2004-11-04 23:22:02 +00:00
fwide.c Update. 2003-08-29 19:58:49 +00:00
fwprintf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
fwscanf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
genops.c * include/fcntl.h: Declare __openat, __open64. Use libc_hidden_proto. 2006-03-01 05:32:59 +00:00
getc_u.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
getc.c Update. 2003-08-29 19:58:49 +00:00
getchar_u.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
getchar.c Update. 2003-08-29 19:58:49 +00:00
getwc_u.c [BZ #2079] 2006-01-15 17:45:20 +00:00
getwc.c Update. 2003-08-29 19:58:49 +00:00
getwchar_u.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
getwchar.c Update. 2003-08-29 19:58:49 +00:00
iofclose.c [BZ #627] 2005-09-26 16:56:27 +00:00
iofdopen.c * scripts/abilist.awk: If variable `parse_names' is set, grok the file 2003-03-27 11:54:09 +00:00
iofflush_u.c Update. 2002-08-04 20:54:20 +00:00
iofflush.c Update. 2003-08-29 19:58:49 +00:00
iofgetpos64.c 2004-11-04 Jakub Jelinek <jakub@redhat.com> 2004-11-04 23:22:02 +00:00
iofgetpos.c 2004-11-04 Jakub Jelinek <jakub@redhat.com> 2004-11-04 23:22:02 +00:00
iofgets_u.c [BZ #713] 2005-09-27 00:00:42 +00:00
iofgets.c [BZ #713] 2005-09-27 00:00:42 +00:00
iofgetws_u.c [BZ #713] 2005-09-27 00:00:42 +00:00
iofgetws.c [BZ #713] 2005-09-27 00:00:42 +00:00
iofopen64.c Update. 2002-01-07 09:33:53 +00:00
iofopen.c * scripts/abilist.awk: If variable `parse_names' is set, grok the file 2003-03-27 11:54:09 +00:00
iofopncook.c [BZ #394] 2005-09-23 16:36:09 +00:00
iofputs_u.c Update. 2002-08-04 20:54:20 +00:00
iofputs.c Update. 2003-08-29 19:58:49 +00:00
iofputws_u.c Update. 2002-08-04 20:54:20 +00:00
iofputws.c Update. 2003-08-29 19:58:49 +00:00
iofread_u.c Update. 2002-08-04 20:54:20 +00:00
iofread.c Update. 2003-08-29 19:58:49 +00:00
iofsetpos64.c Update. 2003-08-29 19:58:49 +00:00
iofsetpos.c Update. 2003-08-29 19:58:49 +00:00
ioftell.c 2004-11-04 Jakub Jelinek <jakub@redhat.com> 2004-11-04 23:22:02 +00:00
iofwide.c * iconv/gconv.c: Demangle pointers before use if necessary. 2005-12-19 07:26:29 +00:00
iofwrite_u.c Update. 2002-08-04 20:54:20 +00:00
iofwrite.c Update. 2003-08-29 19:58:49 +00:00
iogetdelim.c [BZ #1405] 2005-10-14 06:25:55 +00:00
iogetline.c [BZ #713] 2005-09-27 00:00:42 +00:00
iogets.c Update. 2003-08-29 19:58:49 +00:00
iogetwline.c [BZ #2080] 2005-12-30 18:09:21 +00:00
iolibio.h Update. 2004-11-27 19:32:49 +00:00
iopadn.c Update. 2002-02-26 01:45:59 +00:00
iopopen.c Update. 2004-09-14 04:41:35 +00:00
ioputs.c Update. 2003-08-29 19:58:49 +00:00
ioseekoff.c Update. 2003-08-29 19:58:49 +00:00
ioseekpos.c Update. 2004-12-06 22:48:11 +00:00
iosetbuffer.c Update. 2003-08-29 19:58:49 +00:00
iosetvbuf.c Update. 2003-08-29 19:58:49 +00:00
ioungetc.c Update. 2003-08-29 19:58:49 +00:00
ioungetwc.c [BZ #2078, BZ #2079] 2006-01-15 17:46:04 +00:00
iovdprintf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
iovsprintf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
iovsscanf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
iovswscanf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
iowpadn.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
libc_fatal.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
libio.h * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
libioP.h * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
Makefile [BZ #1996] 2006-08-14 22:16:14 +00:00
memstream.c [BZ #1996] 2006-08-14 22:16:14 +00:00
obprintf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
oldfileops.c * libio/oldfileops.c (_IO_old_file_xsputn): Fix last patch. 2005-10-17 16:05:54 +00:00
oldiofclose.c * libio/oldiofclose.c (_IO_old_fclose): Likewise. 2005-09-26 17:02:19 +00:00
oldiofdopen.c Update. 2004-03-10 09:29:17 +00:00
oldiofgetpos64.c 2004-11-04 Jakub Jelinek <jakub@redhat.com> 2004-11-04 23:22:02 +00:00
oldiofgetpos.c 2004-11-04 Jakub Jelinek <jakub@redhat.com> 2004-11-04 23:22:02 +00:00
oldiofopen.c Update. 2004-03-10 09:29:17 +00:00
oldiofsetpos64.c Update. 2004-03-10 09:29:17 +00:00
oldiofsetpos.c Update. 2004-03-10 09:29:17 +00:00
oldiopopen.c Update. 2004-09-14 04:41:35 +00:00
oldpclose.c Update. 2004-03-10 09:29:17 +00:00
oldstdfiles.c Update. 2004-09-14 04:41:35 +00:00
oldtmpfile.c Update. 2004-03-10 09:29:17 +00:00
pclose.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
peekc.c Update. 2003-08-29 19:58:49 +00:00
putc_u.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
putc.c Update. 2003-08-29 19:58:49 +00:00
putchar_u.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
putchar.c Update. 2003-08-29 19:58:49 +00:00
putwc_u.c Update. 2003-02-05 18:06:28 +00:00
putwc.c Update. 2003-08-29 19:58:49 +00:00
putwchar_u.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
putwchar.c Update. 2003-08-29 19:58:49 +00:00
rewind.c Update. 2003-08-29 19:58:49 +00:00
setbuf.c Update. 2002-02-26 01:45:59 +00:00
setlinebuf.c Update. 2002-02-26 01:45:59 +00:00
stdfiles.c * scripts/abilist.awk: If variable `parse_names' is set, grok the file 2003-03-27 11:54:09 +00:00
stdio.c Update. 2002-03-17 12:09:12 +00:00
stdio.h * libio/stdio.h: Declare open_wmemstream. 2006-01-16 20:14:50 +00:00
strfile.h * wcsmbs/bits/wchar2.h: New file. 2005-07-15 10:32:45 +00:00
strops.c [BZ #1996] 2006-08-14 22:16:14 +00:00
swprintf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
swscanf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
test-fmemopen.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
test-freopen.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
test-freopen.sh Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
tst_getwc.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
tst_getwc.input Update. 2000-06-23 06:22:36 +00:00
tst_putwc.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
tst_swprintf.c Fix format strings. 2002-09-30 07:47:16 +00:00
tst_swscanf.c Update. 2001-02-09 17:57:28 +00:00
tst_wprintf2.c Update. 2000-07-20 08:56:12 +00:00
tst_wprintf.c Update. 2000-06-17 19:22:43 +00:00
tst_wscanf.c Update. 2001-02-09 17:57:28 +00:00
tst_wscanf.input Update. 1999-06-16 22:55:47 +00:00
tst-atime.c Update. 2002-09-05 10:28:51 +00:00
tst-eof.c pdate. 2002-07-23 00:31:41 +00:00
tst-ext.c Update. 2001-03-27 00:16:51 +00:00
tst-fgetws.c Fix format strings. 2002-09-30 07:47:16 +00:00
tst-fopenloc2.c [BZ #2173] 2006-01-19 01:35:28 +00:00
tst-fopenloc.c Update. 2001-07-27 18:09:56 +00:00
tst-freopen.c Update. 2002-08-25 08:44:43 +00:00
tst-memstream1.c * libio/wmemstream.c: New file. 2006-01-12 02:03:42 +00:00
tst-memstream2.c * libio/wmemstream.c: New file. 2006-01-12 02:03:42 +00:00
tst-mmap2-eofsync.c * catgets/open_catalog.c (__open_catalog): Don't use a value type 2002-09-24 04:24:25 +00:00
tst-mmap-eofsync.c * locale/xlocale.h (struct __locale_struct): New member `__names'. 2002-08-30 10:36:44 +00:00
tst-mmap-fflushsync.c * locale/xlocale.h (struct __locale_struct): New member `__names'. 2002-08-30 10:36:44 +00:00
tst-mmap-offend.c * locale/xlocale.h (struct __locale_struct): New member `__names'. 2002-08-30 10:36:44 +00:00
tst-mmap-setvbuf.c * locale/xlocale.h (struct __locale_struct): New member `__names'. 2002-08-30 10:36:44 +00:00
tst-sscanf.c Update. 2001-08-22 18:40:06 +00:00
tst-swscanf.c Update. 2002-02-26 18:08:08 +00:00
tst-ungetwc1.c * libio/tst-ungetwc1.c (main): Add a const to quiet a warning. 2001-08-23 08:36:47 +00:00
tst-ungetwc2.c Update. 2001-08-17 04:49:12 +00:00
tst-widetext.c * catgets/open_catalog.c (__open_catalog): Don't use a value type 2002-09-24 04:24:25 +00:00
tst-widetext.input Update. 2000-07-25 21:09:46 +00:00
tst-wmemstream1.c * libio/wmemstream.c: New file. 2006-01-12 02:03:42 +00:00
tst-wmemstream2.c * libio/wmemstream.c: New file. 2006-01-12 02:03:42 +00:00
vasprintf.c [BZ #1996] 2006-08-14 22:16:14 +00:00
Versions * libio/stdio.h: Declare open_wmemstream. 2006-01-16 20:14:50 +00:00
vscanf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
vsnprintf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
vswprintf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
vwprintf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
vwscanf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
wfiledoalloc.c 2.5-18.1 2007-07-12 18:26:36 +00:00
wfileops.c [BZ #2079] 2006-01-15 17:45:20 +00:00
wgenops.c [BZ #2226] 2006-02-12 21:41:44 +00:00
wmemstream.c [BZ #1996] 2006-08-14 22:16:14 +00:00
wprintf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
wscanf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
wstrops.c [BZ #1996] 2006-08-14 22:16:14 +00:00