]> git.ipfire.org Git - thirdparty/glibc.git/commit
stdio-common: Also reject exp char w/o significand in i18n scanf [BZ #13988]
authorMaciej W. Rozycki <macro@redhat.com>
Fri, 28 Mar 2025 12:35:53 +0000 (12:35 +0000)
committerMaciej W. Rozycki <macro@redhat.com>
Fri, 28 Mar 2025 12:35:53 +0000 (12:35 +0000)
commita26638424ffea604f7ef94d0c6f3940304698442
tree15227c00e317926271b1b00a8a2e9e14a262317e
parent47076b3163ce645f791d5c8f80080e9811733347
stdio-common: Also reject exp char w/o significand in i18n scanf [BZ #13988]

Fix the handling of real 'scanf' input such as "+.e" as per BZ #13988
for the i18n case as well, complementing commit 6ecec3b616ae ("Don't
accept exp char without preceding digits in scanf float parsing"), where
the 'e' character is incorrectly consumed from input.  Add a test case
matching stdio-common/bug26.c, with bits from localedata/tst-sscanf.c.

Reviewed-by: Joseph Myers <josmyers@redhat.com>
localedata/Makefile
localedata/tst-bz13988.c [new file with mode: 0644]
stdio-common/vfscanf-internal.c