glibc/sysdeps/wordsize-64
Maciej W. Rozycki e78cb4f6bd stdio-common: Reject integer prefixes in scanf [BZ #12701]
Reject invalid formatted scanf integer input data that is comprised of a
binary or hexadecimal prefix, optionally preceded by a sign, and with no
actual digits following.  Such data is a prefix of, but not a matching
input sequence and it is required by ISO C to cause a matching failure.

Currently a matching success is instead incorrectly produced along with
the conversion result of zero, with the prefix wholly consumed from
input.

Enable input data that causes test failures without this fix in place.

Reviewed-by: Joseph Myers <josmyers@redhat.com>
2025-03-28 12:35:53 +00:00
..
bits
Makefile
Versions
fts.c
fts64.c
ftw.c
ftw64.c
labs.c
ldiv.c
strtol.c
strtol_l.c
strtoll.c
strtoll_l.c
strtoul.c
strtoul_l.c
strtoull.c
strtoull_l.c
tst-scanf-format-int-d.input
tst-scanf-format-int-i.input stdio-common: Reject integer prefixes in scanf [BZ #12701] 2025-03-28 12:35:53 +00:00
tst-scanf-format-long-d.input
tst-scanf-format-long-i.input stdio-common: Reject integer prefixes in scanf [BZ #12701] 2025-03-28 12:35:53 +00:00
tst-scanf-format-uint-b.input stdio-common: Reject integer prefixes in scanf [BZ #12701] 2025-03-28 12:35:53 +00:00
tst-scanf-format-uint-o.input
tst-scanf-format-uint-u.input
tst-scanf-format-uint-x.input stdio-common: Reject integer prefixes in scanf [BZ #12701] 2025-03-28 12:35:53 +00:00
tst-scanf-format-uint-xx.input stdio-common: Reject integer prefixes in scanf [BZ #12701] 2025-03-28 12:35:53 +00:00
tst-scanf-format-ulong-b.input stdio-common: Reject integer prefixes in scanf [BZ #12701] 2025-03-28 12:35:53 +00:00
tst-scanf-format-ulong-o.input
tst-scanf-format-ulong-u.input
tst-scanf-format-ulong-x.input stdio-common: Reject integer prefixes in scanf [BZ #12701] 2025-03-28 12:35:53 +00:00
tst-scanf-format-ulong-xx.input stdio-common: Reject integer prefixes in scanf [BZ #12701] 2025-03-28 12:35:53 +00:00
tst-writev.c
wcstol.c
wcstol_l.c
wcstoll.c
wcstoll_l.c
wcstoul.c
wcstoul_l.c
wcstoull.c
wcstoull_l.c