glibc/stdio-common
Joseph Myers 90663e9c81 Fix memory leak in __printf_fp_l (bug 26215).
__printf_fp_l has a memory leak in the case of some I/O errors, where
both buffer and wbuffer have been malloced but the handling of I/O
errors only frees wbuffer.  This patch fixes this by moving the
declaration of buffer to an outer scope and ensuring that it is freed
when wbuffer is freed.

Tested for x86_64 and x86.
2020-07-09 21:52:24 +00:00
..
bits
Depend
Makefile Fix memory leak in __printf_fp_l (bug 26215). 2020-07-09 21:52:24 +00:00
Versions
_i18n_number.h
_itoa.c
_itowa.c
_itowa.h
asprintf.c
bug-vfprintf-nargs.c
bug1.c
bug1.input
bug2.c
bug3.c
bug4.c
bug5.c
bug6.c
bug6.input
bug7.c
bug8.c
bug9.c
bug10.c
bug11.c
bug12.c
bug13.c
bug14.c
bug16.c
bug17.c
bug18.c
bug18a.c
bug19.c
bug19a.c
bug20.c
bug21.c
bug22.c Remove most vfprintf width/precision-dependent allocations (bug 14231, bug 26211). 2020-07-07 14:54:12 +00:00
bug23-2.c
bug23-3.c
bug23-4.c
bug23.c
bug24.c
bug25.c
bug26.c
ctermid.c
cuserid.c
dprintf.c
errlist-compat.c signal: Move sys_errlist to a compat symbol 2020-07-07 14:10:58 -03:00
errlist.c string: Add strerrorname_np and strerrordesc_np 2020-07-07 15:02:57 -03:00
errnobug.c
flockfile.c
fprintf.c
fscanf.c
ftrylockfile.c
funlockfile.c
fxprintf.c
gentempfd.c
getline.c
getw.c
iovfscanf.c
iovfwscanf.c
isoc99_fscanf.c
isoc99_scanf.c
isoc99_sscanf.c
isoc99_vfscanf.c
isoc99_vscanf.c
isoc99_vsscanf.c
itoa-digits.c
itoa-udigits.c
itowa-digits.c
perror.c
printf-parse.h
printf-parsemb.c
printf-parsewc.c
printf-prs.c
printf.c
printf.h Rename __LONG_DOUBLE_USES_FLOAT128 to __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 2020-04-30 08:52:08 -05:00
printf_fp.c Fix memory leak in __printf_fp_l (bug 26215). 2020-07-09 21:52:24 +00:00
printf_fphex.c
printf_size.c
psiginfo-data.h
psiginfo-define.h
psiginfo.c signal: Move sys_siglist to a compat symbol 2020-07-07 14:10:58 -03:00
psignal.c signal: Move sys_siglist to a compat symbol 2020-07-07 14:10:58 -03:00
putw.c
reg-modifier.c
reg-printf.c
reg-type.c
remove.c
rename.c
renameat.c
renameat2.c
scanf.c
scanf1.c
scanf2.c
scanf3.c
scanf4.c
scanf5.c
scanf7.c
scanf8.c
scanf9.c
scanf10.c
scanf11.c
scanf12.c
scanf12.input
scanf13.c
scanf14.c
scanf14a.c
scanf15.c
scanf16.c
scanf16a.c
scanf17.c
siglist.c string: Add sigabbrev_np and sigdescr_np 2020-07-07 14:57:14 -03:00
snprintf.c
sprintf.c
sscanf.c
stdio_ext.h
stdio_lim.h.in
tempnam.c
tempname.c
temptest.c
test-fseek.c
test-fwrite.c
test-popen.c
test-strerr.c string: Add strerrorname_np and strerrordesc_np 2020-07-07 15:02:57 -03:00
test-vfprintf.c
test_rdwr.c
tfformat.c
tiformat.c
tllformat.c
tmpfile.c
tmpfile64.c
tmpnam.c
tmpnam_r.c
tst-bz11319-fortify2.c
tst-bz11319.c
tst-cookie.c
tst-errno-manual.py signal: Move sys_errlist to a compat symbol 2020-07-07 14:10:58 -03:00
tst-fdopen.c
tst-ferror.c
tst-ferror.input
tst-fgets.c
tst-fileno.c
tst-fmemopen.c
tst-fmemopen2.c
tst-fmemopen3.c
tst-fmemopen4.c
tst-fphex-wide.c
tst-fphex.c
tst-fseek.c
tst-fwrite.c
tst-gets.c
tst-gets.input
tst-grouping.c
tst-long-dbl-fphex.c
tst-obprintf.c
tst-perror.c
tst-popen.c
tst-popen2.c
tst-printf-bz18872.sh
tst-printf-bz25691.c stdio: Add tests for printf multibyte convertion leak [BZ#25691] 2020-03-20 11:02:38 -03:00
tst-printf-fp-free.c Fix double free in __printf_fp_l (bug 26214). 2020-07-09 21:51:49 +00:00
tst-printf-fp-leak.c Fix memory leak in __printf_fp_l (bug 26215). 2020-07-09 21:52:24 +00:00
tst-printf-round.c
tst-printf.c
tst-printf.sh
tst-printfsz-islongdouble.c
tst-printfsz-islongdouble.sh
tst-printfsz.c
tst-put-error.c
tst-renameat2.c
tst-rndseek.c
tst-scanf-round.c
tst-setvbuf1.c
tst-setvbuf1.expect
tst-sprintf.c
tst-sprintf2.c
tst-sprintf3.c
tst-sscanf.c
tst-swprintf.c
tst-swscanf.c
tst-tmpnam.c
tst-unbputc.c
tst-unbputc.sh
tst-ungetc.c
tst-unlockedio.c
tst-vfprintf-mbs-prec.c
tst-vfprintf-user-type.c Rename __LONG_DOUBLE_USES_FLOAT128 to __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 2020-04-30 08:52:08 -05:00
tst-vfprintf-width-prec-alloc.c Remove most vfprintf width/precision-dependent allocations (bug 14231, bug 26211). 2020-07-07 14:54:12 +00:00
tst-vfprintf-width-prec.c
tst-wc-printf.c
tstdiomisc.c
tstgetln.c
tstgetln.input
tstscanf.c
tstscanf.input
vfprintf-internal.c Remove most vfprintf width/precision-dependent allocations (bug 14231, bug 26211). 2020-07-07 14:54:12 +00:00
vfprintf.c
vfscanf-internal.c
vfscanf.c
vfwprintf-internal.c
vfwprintf.c
vfwscanf-internal.c
vfwscanf.c
vprintf.c
xbug.c