glibc/stdio-common
Maciej W. Rozycki 99ffa84bdc stdio-common: Add test for vfscanf with matches longer than INT_MAX [BZ #27650]
Complement commit b03e4d7bd2 ("stdio: fix vfscanf with matches longer
than INT_MAX (bug 27650)") and add a test case for the issue, inspired
by the reproducer provided with the bug report.

This has been verified to succeed as from the commit referred and fail
beforehand.

As the test requires 2GiB of data to be passed around its performance
has been evaluated using a choice of systems and the execution time
determined to be respectively in the range of 9s for POWER9@2.166GHz,
24s for FU740@1.2GHz, and 40s for 74Kf@950MHz.  As this is on the verge
of and beyond the default timeout it has been increased by the factor of
8.  Regardless, following recent practice the test has been added to the
standard rather than extended set.

Reviewed-by: DJ Delorie <dj@redhat.com>
(cherry picked from commit 89cddc8a70)
2024-08-28 16:44:35 -04:00
..
bits
Depend
Makefile stdio-common: Add test for vfscanf with matches longer than INT_MAX [BZ #27650] 2024-08-28 16:44:35 -04:00
Versions C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
Xprintf_buffer_done.c
Xprintf_buffer_flush.c
Xprintf_buffer_pad_1.c
Xprintf_buffer_putc_1.c
Xprintf_buffer_puts_1.c
Xprintf_buffer_write.c
Xprintf_function_invoke.c
_i18n_number.h
_itoa.c stdio-common: Fix building when !IS_IN (libc) 2023-04-03 01:01:11 +02:00
_itowa.c
_itowa.h
asprintf.c
bug-vfprintf-nargs.c
bug1.c
bug1.input
bug2.c
bug3.c tests: replace fread by xfread 2023-06-13 19:59:08 -04:00
bug4.c tests: replace fread by xfread 2023-06-13 19:59:08 -04:00
bug5.c tests: fix warn unused result on asprintf calls 2023-06-06 08:23:53 -04:00
bug6.c tests: fix warn unused results 2023-06-01 13:01:32 -04:00
bug6.input
bug7.c
bug8.c
bug9.c
bug10.c
bug11.c
bug12.c tests: replace fread by xfread 2023-06-13 19:59:08 -04:00
bug13.c
bug14.c
bug16.c
bug17.c
bug18.c
bug18a.c
bug19.c tests: fix warn unused results 2023-06-01 13:01:32 -04:00
bug19a.c
bug20.c
bug21.c
bug22.c
bug23.c
bug24.c
bug25.c
bug26.c
bug27.c stdio-common: Adjust tests in Makefile 2023-05-18 12:34:00 -04:00
bug28.c stdio-common: Adjust tests in Makefile 2023-05-18 12:34:00 -04:00
bug29.c stdio-common: Adjust tests in Makefile 2023-05-18 12:34:00 -04:00
ctermid.c
cuserid.c
dprintf.c
err_map.h
errlist-compat-data.h
errlist-data-gen.c
errlist-data.S
errlist.c
errname.c
errnobug.c
flockfile.c
fprintf.c
fscanf.c
ftrylockfile.c
funlockfile.c
fxprintf.c
gentempfd.c
getline.c
getw.c
grouping_iterator.c
grouping_iterator.h
iovfscanf.c
isoc23_fscanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
isoc23_scanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
isoc23_sscanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
isoc23_vfscanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
isoc23_vscanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
isoc23_vsscanf.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
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 C2x printf %wN, %wfN support (bug 24466) 2023-06-19 18:52:12 +00:00
printf-parsemb.c C2x printf %wN, %wfN support (bug 24466) 2023-06-19 18:52:12 +00:00
printf-parsewc.c
printf-prs.c C2x printf %wN, %wfN support (bug 24466) 2023-06-19 18:52:12 +00:00
printf.c
printf.h
printf_buffer-char.h
printf_buffer-wchar_t.h
printf_buffer_as_file.c libio: Remove the usage of __libc_IO_vtables 2023-03-27 13:57:55 -03:00
printf_buffer_as_file.h
printf_buffer_done.c
printf_buffer_flush.c
printf_buffer_pad_1.c
printf_buffer_putc_1.c
printf_buffer_puts_1.c
printf_buffer_to_file.c
printf_buffer_to_file.h
printf_buffer_write.c
printf_fp.c
printf_fphex.c Fix all the remaining misspellings -- BZ 25337 2023-06-02 01:39:48 +00:00
printf_function_invoke.c
printf_size.c
psiginfo-data.h
psiginfo-define.h
psiginfo.c
psignal.c
putw.c
reg-modifier.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
reg-printf.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
reg-type.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
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
scanf15.c
scanf16.c
scanf17.c
scanf18.c stdio-common: Adjust tests in Makefile 2023-05-18 12:34:00 -04:00
scanf19.c stdio-common: Adjust tests in Makefile 2023-05-18 12:34:00 -04:00
siglist-gen.c
siglist.S
snprintf.c
sprintf.c
sscanf.c
stdio_ext.h
tempnam.c
tempname.c
temptest.c
test-fseek.c
test-fwrite.c tests: fix warn unused result on asprintf calls 2023-06-06 08:23:53 -04:00
test-popen.c
test-strerr.c
test-vfprintf.c
test_rdwr.c tests: replace fgets by xfgets 2023-06-13 19:59:08 -04:00
tfformat.c
tiformat.c
tllformat.c
tmpfile.c
tmpfile64.c
tmpnam.c
tmpnam_r.c
translated_number_width.c
tst-bz11319-fortify2.c
tst-bz11319.c
tst-cookie.c tests: replace fread by xfread 2023-06-13 19:59:08 -04:00
tst-dprintf-length.c
tst-errno-manual.py
tst-fdopen.c
tst-ferror.c
tst-ferror.input
tst-fgets.c
tst-fileno.c
tst-fmemopen.c
tst-fmemopen2.c Fix all the remaining misspellings -- BZ 25337 2023-06-02 01:39:48 +00:00
tst-fmemopen3.c tests: replace fread by xfread 2023-06-13 19:59:08 -04:00
tst-fmemopen4.c
tst-fphex-wide.c
tst-fphex.c
tst-fseek.c tests: fix warn unused result on asprintf calls 2023-06-06 08:23:53 -04:00
tst-fwrite.c
tst-gets.c
tst-gets.input
tst-grouping.c
tst-grouping2.c
tst-grouping3.c Account for grouping in printf width (bug 30068) 2023-02-06 10:20:39 -05:00
tst-grouping_iterator.c
tst-long-dbl-fphex.c
tst-memstream-string.c
tst-obprintf.c
tst-perror.c tests: replace ftruncate by xftruncate 2023-06-01 12:45:13 -04:00
tst-popen.c
tst-popen2.c
tst-popen3.c stdio: Do not ignore posix_spawn error on popen (BZ #29016) 2023-02-14 15:30:35 -03:00
tst-printf-binary-main.c Update printf %b/%B C2x support 2023-03-14 16:58:35 +00:00
tst-printf-binary.c
tst-printf-bz18872.sh
tst-printf-bz25691.c stdio-common: tests: Incorrect maxlen parameter for swprintf 2023-06-22 00:20:55 -04:00
tst-printf-fp-free.c
tst-printf-fp-leak.c
tst-printf-intn-main.c C2x printf %wN, %wfN support (bug 24466) 2023-06-19 18:52:12 +00:00
tst-printf-intn.c C2x printf %wN, %wfN support (bug 24466) 2023-06-19 18:52:12 +00:00
tst-printf-oct.c
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-binary-c2x.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-scanf-binary-c11.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-scanf-binary-gnu11.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-scanf-binary-gnu89.c C2x scanf binary constant handling 2023-03-02 19:10:37 +00:00
tst-scanf-binary-main.c C2x scanf %b support 2023-06-19 19:40:34 +00:00
tst-scanf-bz27650.c stdio-common: Add test for vfscanf with matches longer than INT_MAX [BZ #27650] 2024-08-28 16:44:35 -04:00
tst-scanf-round.c
tst-scanf-to_inpunct.c vfscanf-internal: Remove potentially unbounded allocas 2023-07-06 10:46:46 -03:00
tst-setvbuf1.c
tst-setvbuf1.expect
tst-sprintf-errno.c
tst-sprintf.c
tst-sprintf2.c
tst-sprintf3.c
tst-sscanf.c Fix all the remaining misspellings -- BZ 25337 2023-06-02 01:39:48 +00:00
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 stdio-common: tests: Incorrect maxlen parameter for swprintf 2023-06-22 00:20:55 -04:00
tst-vfprintf-user-type.c
tst-vfprintf-width-i18n.c
tst-vfprintf-width-prec-alloc.c
tst-vfprintf-width-prec.c
tst-wc-printf.c
tstdiomisc.c
tstgetln.c
tstgetln.input
tstscanf.c tests: fix warn unused results 2023-06-01 13:01:32 -04:00
tstscanf.input
vfprintf-internal.c C2x printf %wN, %wfN support (bug 24466) 2023-06-19 18:52:12 +00:00
vfprintf-process-arg.c Fix a few more typos I missed in previous round -- BZ 25337 2023-06-02 23:46:32 +00:00
vfprintf.c
vfscanf-internal.c vfscanf-internal: Remove potentially unbounded allocas 2023-07-06 10:46:46 -03:00
vfscanf.c
vfwprintf-internal.c
vfwprintf.c
vfwscanf-internal.c
vfwscanf.c
vprintf.c
wprintf_buffer_as_file.c libio: Remove the usage of __libc_IO_vtables 2023-03-27 13:57:55 -03:00
wprintf_buffer_done.c
wprintf_buffer_flush.c
wprintf_buffer_pad_1.c
wprintf_buffer_putc_1.c
wprintf_buffer_puts_1.c
wprintf_buffer_to_file.c
wprintf_buffer_write.c
wprintf_function_invoke.c
xbug.c