[PATCH v2 15/17] stdio-common: Reject integer prefixes in scanf [BZ #12701]
Florian Weimer
fweimer@redhat.com
Mon Mar 24 12:35:41 GMT 2025
* Maciej W. Rozycki:
> From: Maciej W. Rozycki <macro@redhat.com>
>
> Reject invalid formatted scanf integer input data that is comprised of
> a binary or hexadecimal prefix respectively, optionally preceded by a
> sign, and with no actual digits following. Such data is a prefix of,
> but not a matching input sequence and therefore it is meant to cause a
> matching failure. Instead a matching success is recorded and the value
> of zero currently returned with the prefix wholly consumed from input.
Could you reword the commit message so that it's clearer what describes
and the old behavior, and what describes the new behavior?
Thanks,
Florian
More information about the Libc-alpha
mailing list