vfscanf-internal: Remove potentially unbounded allocas
commit320ac7eeb47671e03ee26d4419b640fac0312390
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 27 Jun 2023 18:05:56 +0000 (27 14:05 -0400)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 6 Jul 2023 13:46:46 +0000 (6 10:46 -0300)
tree8de38a4597acb794997802c59e9e5bbe40c2ec80
parent5324d258427fd11ca0f4f595c94016e568b26d6b
vfscanf-internal: Remove potentially unbounded allocas

Some locales define a list of mapping pairs of alternate digits and
separators for input digits (to_inpunct).  This require the scanf
to create a list of all possible inputs for the optional type
modifier 'I'.

Checked on x86_64-linux-gnu.

Reviewed-by: Joe Simmons-Talbott <josimmon@redhat.com>
stdio-common/Makefile
stdio-common/tst-scanf-to_inpunct.c [new file with mode: 0644]
stdio-common/vfscanf-internal.c
wcsmbs/Makefile
wcsmbs/tst-wscanf-to_inpunct.c [new file with mode: 0644]