]> git.ipfire.org Git - thirdparty/glibc.git/commit
stdio-common: Add test for vfscanf with matches longer than INT_MAX [BZ #27650]
authorMaciej W. Rozycki <macro@redhat.com>
Fri, 26 Jul 2024 12:21:34 +0000 (13:21 +0100)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 28 Aug 2024 22:44:05 +0000 (18:44 -0400)
commit5784740194b7c3a5fd86e12944ae1545fb3a159b
tree36fcdf95342693e76eaa9b06cd22a4780506a3da
parent6eb942055100a6e84b6e492e1091c55f18dc5fd1
stdio-common: Add test for vfscanf with matches longer than INT_MAX [BZ #27650]

Complement commit b03e4d7bd25b ("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 89cddc8a7096f3d9225868304d2bc0a1aaf07d63)
(cherry picked from commit 99ffa84bdcdc3d81e82f448279f0c8278dd30964)
stdio-common/Makefile
stdio-common/tst-scanf-bz27650.c [new file with mode: 0644]