aboutsummaryrefslogtreecommitdiff
path: root/malloc/malloc-debug.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@redhat.com>2025-03-28 12:35:53 +0000
committerMaciej W. Rozycki <macro@redhat.com>2025-03-28 12:35:53 +0000
commite78cb4f6bd033b09eaf316057598df9315891860 (patch)
tree5bd950535a238ed8106fc8288e76cdb8f02c8644 /malloc/malloc-debug.c
parenta26638424ffea604f7ef94d0c6f3940304698442 (diff)
downloadglibc-e78cb4f6bd033b09eaf316057598df9315891860.zip
glibc-e78cb4f6bd033b09eaf316057598df9315891860.tar.gz
glibc-e78cb4f6bd033b09eaf316057598df9315891860.tar.bz2
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>
Diffstat (limited to 'malloc/malloc-debug.c')
0 files changed, 0 insertions, 0 deletions