about summary refs log tree commit diff
path: root/stdio-common/Makefile
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-06-27 14:05:56 -0400
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-07-06 10:46:46 -0300
commit320ac7eeb47671e03ee26d4419b640fac0312390 (patch)
tree8de38a4597acb794997802c59e9e5bbe40c2ec80 /stdio-common/Makefile
parent5324d258427fd11ca0f4f595c94016e568b26d6b (diff)
downloadglibc-320ac7eeb47671e03ee26d4419b640fac0312390.tar.gz
glibc-320ac7eeb47671e03ee26d4419b640fac0312390.tar.xz
glibc-320ac7eeb47671e03ee26d4419b640fac0312390.zip
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>
Diffstat (limited to 'stdio-common/Makefile')
-rw-r--r--stdio-common/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index fe304b8373..3866362bae 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -244,6 +244,7 @@ tests := \
   tst-scanf-binary-gnu11 \
   tst-scanf-binary-gnu89 \
   tst-scanf-round \
+  tst-scanf-to_inpunct \
   tst-setvbuf1 \
   tst-sprintf \
   tst-sprintf-errno \
@@ -360,6 +361,7 @@ LOCALES := \
   de_DE.ISO-8859-1 \
   de_DE.UTF-8 \
   en_US.ISO-8859-1 \
+  fa_IR.UTF-8 \
   hi_IN.UTF-8 \
   ja_JP.EUC-JP \
   ps_AF.UTF-8 \
@@ -379,6 +381,7 @@ $(objpfx)tst-swprintf.out: $(gen-locales)
 $(objpfx)tst-vfprintf-mbs-prec.out: $(gen-locales)
 $(objpfx)tst-vfprintf-width-i18n.out: $(gen-locales)
 $(objpfx)tst-grouping3.out: $(gen-locales)
+$(objpfx)tst-scanf-to_inpunct.out: $(gen-locales)
 endif
 
 tst-printf-bz18872-ENV = MALLOC_TRACE=$(objpfx)tst-printf-bz18872.mtrace \