glibc/libio
Adhemerval Zanella 787813b144 libio: Fix fmemopen 'w' mode with provided buffer
If 'w' mode is used with a provided buffer the fmemopen will try to find
the first null byte to set as maximum internal stream size.  It should be
done only for append mode ('a').

Kudos for Stefan Liebler for finding this error on s390-32.

	* libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
	buffer.
	* stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
	fail output information.
2015-07-16 15:21:49 -03:00
..
bits
__fbufsize.c
__flbf.c
__fpending.c
__fpurge.c
__freadable.c
__freading.c
__fsetlocking.c
__fwritable.c
__fwriting.c
bug-fopena+.c
bug-fseek.c
bug-ftell.c
bug-memstream1.c
bug-mmap-fflush.c
bug-rewind2.c
bug-rewind.c
bug-ungetc2.c
bug-ungetc3.c
bug-ungetc4.c
bug-ungetc.c
bug-ungetwc1.c
bug-ungetwc2.c
bug-wfflush.c
bug-wmemstream1.c
bug-wsetpos.c
clearerr_u.c
clearerr.c
Depend
fcloseall.c
feof_u.c
feof.c
ferror_u.c
ferror.c
filedoalloc.c
fileno.c
fileops.c Use "|" instead of "+" when combine the _IO_LINE_BUF and _IO_UNBUFFERED flags 2015-07-08 13:53:11 +05:30
fmemopen.c libio: Fix fmemopen 'w' mode with provided buffer 2015-07-16 15:21:49 -03:00
fputc_u.c
fputc.c
fputwc_u.c
fputwc.c
freopen64.c
freopen.c
fseek.c
fseeko64.c
fseeko.c
ftello64.c
ftello.c
fwide.c
fwprintf.c
fwscanf.c
genops.c
getc_u.c
getc.c
getchar_u.c
getchar.c
getwc_u.c
getwc.c
getwchar_u.c
getwchar.c
iofclose.c
iofdopen.c
iofflush_u.c Fix getpass fflush_unlocked namespace (bug 18540). 2015-06-17 20:14:18 +00:00
iofflush.c Fix getpass fflush_unlocked namespace (bug 18540). 2015-06-17 20:14:18 +00:00
iofgetpos64.c
iofgetpos.c
iofgets_u.c
iofgets.c
iofgetws_u.c
iofgetws.c
iofopen64.c
iofopen.c
iofopncook.c
iofputs_u.c Fix syslog fputs_unlocked namespace (bug 18530). 2015-06-12 22:36:38 +00:00
iofputs.c Fix syslog fputs_unlocked namespace (bug 18530). 2015-06-12 22:36:38 +00:00
iofputws_u.c
iofputws.c
iofread_u.c
iofread.c
iofsetpos64.c
iofsetpos.c
ioftell.c
iofwide.c
iofwrite_u.c
iofwrite.c
iogetdelim.c
iogetline.c
iogets.c
iogetwline.c
iolibio.h
iopadn.c
iopopen.c
ioputs.c
ioseekoff.c
ioseekpos.c
iosetbuffer.c
iosetvbuf.c
ioungetc.c
ioungetwc.c
iovdprintf.c
iovsprintf.c
iovsscanf.c
iovswscanf.c Fix swscanf vswscanf namespace (bug 18542). 2015-06-17 20:15:22 +00:00
iowpadn.c
libc_fatal.c
libio.h
libioP.h
Makefile libio: fmemopen rewrite to POSIX compliance 2015-07-08 12:07:21 -03:00
memstream.c Fix open_memstream namespace (bug 18498). 2015-06-05 23:32:46 +00:00
obprintf.c
oldfileops.c Use "|" instead of "+" when combine the _IO_LINE_BUF and _IO_UNBUFFERED flags 2015-07-08 13:53:11 +05:30
oldfmemopen.c libio: fmemopen rewrite to POSIX compliance 2015-07-08 12:07:21 -03:00
oldiofclose.c
oldiofdopen.c
oldiofgetpos64.c
oldiofgetpos.c
oldiofopen.c
oldiofsetpos64.c
oldiofsetpos.c
oldiopopen.c
oldpclose.c
oldstdfiles.c
oldtmpfile.c
pclose.c
peekc.c
putc_u.c
putc.c
putchar_u.c
putchar.c
putwc_u.c
putwc.c
putwchar_u.c
putwchar.c
rewind.c
setbuf.c
setlinebuf.c
stdfiles.c
stdio.c
stdio.h
strfile.h
strops.c
swprintf.c
swscanf.c Fix swscanf vswscanf namespace (bug 18542). 2015-06-17 20:15:22 +00:00
test-fmemopen.c Fix buffer overflow for writes to memory buffer stream (bug 18549) 2015-06-25 15:54:09 +02:00
test-freopen.c
test-freopen.sh
tst_getwc.c
tst_getwc.input
tst_putwc.c
tst_swprintf.c
tst_swscanf.c
tst_wprintf2.c
tst_wprintf.c
tst_wscanf.c
tst_wscanf.input
tst-atime.c
tst-eof.c
tst-ext2.c
tst-ext.c
tst-fgetwc.c
tst-fgetwc.input
tst-fgetws.c
tst-fopenloc2.c
tst-fopenloc.c
tst-fputws.c
tst-freopen.c
tst-fseek.c
tst-ftell-active-handler.c
tst-ftell-append.c
tst-ftell-partial-wide.c
tst-fwrite-error.c
tst-memstream1.c
tst-memstream2.c
tst-mmap2-eofsync.c
tst-mmap-eofsync.c
tst-mmap-fflushsync.c
tst-mmap-offend.c
tst-mmap-setvbuf.c
tst-popen1.c
tst-setvbuf1.c
tst-sscanf.c
tst-swscanf.c
tst-ungetwc1.c
tst-ungetwc2.c
tst-widetext.c
tst-widetext.input
tst-wmemstream1.c
tst-wmemstream2.c
vasprintf.c
Versions libio: fmemopen rewrite to POSIX compliance 2015-07-08 12:07:21 -03:00
vscanf.c
vsnprintf.c
vswprintf.c
vwprintf.c
vwscanf.c
wfiledoalloc.c
wfileops.c Use "|" instead of "+" when combine the _IO_LINE_BUF and _IO_UNBUFFERED flags 2015-07-08 13:53:11 +05:30
wgenops.c
wmemstream.c
wprintf.c
wscanf.c
wstrops.c