about summary refs log tree commit diff
path: root/wcsmbs/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 /wcsmbs/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 'wcsmbs/Makefile')
-rw-r--r--wcsmbs/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/wcsmbs/Makefile b/wcsmbs/Makefile
index d25a2214f8..431136b9c9 100644
--- a/wcsmbs/Makefile
+++ b/wcsmbs/Makefile
@@ -196,6 +196,7 @@ tests := \
   tst-wscanf-binary-c2x \
   tst-wscanf-binary-gnu11 \
   tst-wscanf-binary-gnu89 \
+  tst-wscanf-to_inpunct \
   wcsatcliff \
   wcsmbs-tst1 \
   # tests
@@ -207,6 +208,7 @@ LOCALES := \
   de_DE.ISO-8859-1 \
   de_DE.UTF-8 \
   en_US.ANSI_X3.4-1968 \
+  fa_IR.UTF-8 \
   hr_HR.ISO-8859-2 \
   ja_JP.EUC-JP \
   tr_TR.ISO-8859-9 \
@@ -228,6 +230,7 @@ $(objpfx)tst-c16-surrogate.out: $(gen-locales)
 $(objpfx)tst-c32-state.out: $(gen-locales)
 $(objpfx)test-c8rtomb.out: $(gen-locales)
 $(objpfx)test-mbrtoc8.out: $(gen-locales)
+$(objpfx)tst-wscanf-to_inpunct.out: $(gen-locales)
 endif
 
 $(objpfx)tst-wcstod-round: $(libm)